Skip to content

Commit

Permalink
feat: renames [repository-rule-params-code-scanning-threshold to repo…
Browse files Browse the repository at this point in the history
…sitory-rule-params-code-scanning-tool, security_alerts to security_alerts_threshold], renames fields[repository-rule-params-code-scanning-threshold.alerts to repository-rule-params-code-scanning-tool.alerts_threshold, repository-rule-params-code-scanning-threshold.security_alerts to repository-rule-params-code-scanning-tool.security_alerts_threshold]

BREAKING CHANGE: renames [repository-rule-params-code-scanning-threshold to repository-rule-params-code-scanning-tool, security_alerts to security_alerts_threshold], renames fields[repository-rule-params-code-scanning-threshold.alerts to repository-rule-params-code-scanning-tool.alerts_threshold, repository-rule-params-code-scanning-threshold.security_alerts to repository-rule-params-code-scanning-tool.security_alerts_threshold]
  • Loading branch information
nickfloyd committed Apr 5, 2024
2 parents 53ad975 + c9fb96d commit 5f19af4
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 42 deletions.
24 changes: 14 additions & 10 deletions cache/api.github.com.json
Expand Up @@ -26012,8 +26012,12 @@
"description": "Whether the property is required."
},
"default_value": {
"type": ["string", "null"],
"description": "Default value of the property"
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
],
"description": "Default value of the property",
"type": ["null", "string", "array"]
},
"description": {
"type": ["string", "null"],
Expand Down Expand Up @@ -27181,19 +27185,19 @@
}
}
},
"repository-rule-params-code-scanning-threshold": {
"title": "CodeScanningThreshold",
"description": "A tool and its thresholds.",
"repository-rule-params-code-scanning-tool": {
"title": "CodeScanningTool",
"description": "A tool that must provide code scanning results for this rule to pass.",
"type": "object",
"properties": {
"alerts": {
"alerts_threshold": {
"type": "string",
"description": "Code scanning alert 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](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": {
"security_alerts_threshold": {
"type": "string",
"description": "Code scanning security alert 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](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",
Expand All @@ -27207,7 +27211,7 @@
"description": "The name of a code scanning tool"
}
},
"required": ["alerts", "security_alerts", "tool"]
"required": ["alerts_threshold", "security_alerts_threshold", "tool"]
},
"repository-rule": {
"title": "Repository Rule",
Expand Down
24 changes: 14 additions & 10 deletions cache/ghec.json
Expand Up @@ -27140,8 +27140,12 @@
"description": "Whether the property is required."
},
"default_value": {
"type": ["string", "null"],
"description": "Default value of the property"
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
],
"description": "Default value of the property",
"type": ["null", "string", "array"]
},
"description": {
"type": ["string", "null"],
Expand Down Expand Up @@ -28309,19 +28313,19 @@
}
}
},
"repository-rule-params-code-scanning-threshold": {
"title": "CodeScanningThreshold",
"description": "A tool and its thresholds.",
"repository-rule-params-code-scanning-tool": {
"title": "CodeScanningTool",
"description": "A tool that must provide code scanning results for this rule to pass.",
"type": "object",
"properties": {
"alerts": {
"alerts_threshold": {
"type": "string",
"description": "Code scanning alert 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](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": {
"security_alerts_threshold": {
"type": "string",
"description": "Code scanning security alert 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](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",
Expand All @@ -28335,7 +28339,7 @@
"description": "The name of a code scanning tool"
}
},
"required": ["alerts", "security_alerts", "tool"]
"required": ["alerts_threshold", "security_alerts_threshold", "tool"]
},
"repository-rule": {
"title": "Repository Rule",
Expand Down
16 changes: 8 additions & 8 deletions cache/ghes-3.11.json
Expand Up @@ -28473,19 +28473,19 @@
}
}
},
"repository-rule-params-code-scanning-threshold": {
"title": "CodeScanningThreshold",
"description": "A tool and its thresholds.",
"repository-rule-params-code-scanning-tool": {
"title": "CodeScanningTool",
"description": "A tool that must provide code scanning results for this rule to pass.",
"type": "object",
"properties": {
"alerts": {
"alerts_threshold": {
"type": "string",
"description": "Code scanning alert 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](https://docs.github.com/enterprise-server@3.11/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": {
"security_alerts_threshold": {
"type": "string",
"description": "Code scanning security alert 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](https://docs.github.com/enterprise-server@3.11/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
"enum": [
"none",
"critical",
Expand All @@ -28499,7 +28499,7 @@
"description": "The name of a code scanning tool"
}
},
"required": ["alerts", "security_alerts", "tool"]
"required": ["alerts_threshold", "security_alerts_threshold", "tool"]
},
"repository-rule": {
"title": "Repository Rule",
Expand Down
16 changes: 8 additions & 8 deletions cache/ghes-3.12.json
Expand Up @@ -29123,19 +29123,19 @@
}
}
},
"repository-rule-params-code-scanning-threshold": {
"title": "CodeScanningThreshold",
"description": "A tool and its thresholds.",
"repository-rule-params-code-scanning-tool": {
"title": "CodeScanningTool",
"description": "A tool that must provide code scanning results for this rule to pass.",
"type": "object",
"properties": {
"alerts": {
"alerts_threshold": {
"type": "string",
"description": "Code scanning alert 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](https://docs.github.com/enterprise-server@3.12/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": {
"security_alerts_threshold": {
"type": "string",
"description": "Code scanning security alert 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](https://docs.github.com/enterprise-server@3.12/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
"enum": [
"none",
"critical",
Expand All @@ -29149,7 +29149,7 @@
"description": "The name of a code scanning tool"
}
},
"required": ["alerts", "security_alerts", "tool"]
"required": ["alerts_threshold", "security_alerts_threshold", "tool"]
},
"repository-rule": {
"title": "Repository Rule",
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-webhooks-types-ghec/types.d.ts
Expand Up @@ -5593,7 +5593,7 @@ export interface components {
/** @description Whether the property is required. */
required?: boolean;
/** @description Default value of the property */
default_value?: string | null;
default_value?: string | string[] | null | unknown[];
/** @description Short description of the property */
description?: string | null;
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-webhooks-types/types.d.ts
Expand Up @@ -5542,7 +5542,7 @@ export interface components {
/** @description Whether the property is required. */
required?: boolean;
/** @description Default value of the property */
default_value?: string | null;
default_value?: string | string[] | null | unknown[];
/** @description Short description of the property */
description?: string | null;
/**
Expand Down
8 changes: 6 additions & 2 deletions packages/openapi-webhooks/generated/api.github.com.json
Expand Up @@ -25404,8 +25404,12 @@
"description": "Whether the property is required."
},
"default_value": {
"type": ["string", "null"],
"description": "Default value of the property"
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
],
"description": "Default value of the property",
"type": ["null", "string", "array"]
},
"description": {
"type": ["string", "null"],
Expand Down
8 changes: 6 additions & 2 deletions packages/openapi-webhooks/generated/ghec.json
Expand Up @@ -25494,8 +25494,12 @@
"description": "Whether the property is required."
},
"default_value": {
"type": ["string", "null"],
"description": "Default value of the property"
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
],
"description": "Default value of the property",
"type": ["null", "string", "array"]
},
"description": {
"type": ["string", "null"],
Expand Down

0 comments on commit 5f19af4

Please sign in to comment.