Skip to content

Update OpenAPI 3.0 Descriptions #4647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
286 changes: 168 additions & 118 deletions descriptions/api.github.com/api.github.com.2022-11-28.json
Original file line number Diff line number Diff line change
Expand Up @@ -16040,8 +16040,7 @@
"name": "Epic",
"description": "An issue type for a multi-week tracking of work",
"is_enabled": true,
"color": "green",
"is_private": true
"color": "green"
}
}
}
Expand Down Expand Up @@ -16112,8 +16111,7 @@
"name": "Epic",
"description": "An issue type for a multi-week tracking of work",
"is_enabled": true,
"color": "green",
"is_private": true
"color": "green"
}
}
}
Expand Down Expand Up @@ -108599,6 +108597,128 @@
}
}
},
"repository-rule-file-path-restriction": {
"title": "file_path_restriction",
"description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph.",
"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"
]
}
}
},
"repository-rule-max-file-path-length": {
"title": "max_file_path_length",
"description": "Prevent commits that include file paths that exceed a 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": 256
}
},
"required": [
"max_file_path_length"
]
}
}
},
"repository-rule-file-extension-restriction": {
"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"
]
}
}
},
"repository-rule-max-file-size": {
"title": "max_file_size",
"description": "Prevent commits that exceed a specified file size 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"
]
}
}
},
"repository-rule-params-restricted-commits": {
"title": "RestrictedCommits",
"description": "Restricted commit",
Expand Down Expand Up @@ -108798,126 +108918,16 @@
"$ref": "#/components/schemas/repository-rule-tag-name-pattern"
},
{
"title": "file_path_restriction",
"description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph.",
"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"
]
}
}
"$ref": "#/components/schemas/repository-rule-file-path-restriction"
},
{
"title": "max_file_path_length",
"description": "Prevent commits that include file paths that exceed a 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": 256
}
},
"required": [
"max_file_path_length"
]
}
}
"$ref": "#/components/schemas/repository-rule-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"
]
}
}
"$ref": "#/components/schemas/repository-rule-file-extension-restriction"
},
{
"title": "max_file_size",
"description": "Prevent commits that exceed a specified file size 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"
]
}
}
"$ref": "#/components/schemas/repository-rule-max-file-size"
},
{
"$ref": "#/components/schemas/repository-rule-workflows"
Expand Down Expand Up @@ -123958,6 +123968,46 @@
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-file-path-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-max-file-path-length"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-file-extension-restriction"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/repository-rule-max-file-size"
},
{
"$ref": "#/components/schemas/repository-rule-ruleset-info"
}
]
},
{
"allOf": [
{
Expand Down
Loading