Skip to content

Commit

Permalink
FEAT: Adds repository-rule-params-thresholds, repository-rule.role_na…
Browse files Browse the repository at this point in the history
…me, created.git-ref-only
  • Loading branch information
nickfloyd committed Mar 12, 2024
2 parents 886e1cf + 22a1344 commit 43b9072
Show file tree
Hide file tree
Showing 21 changed files with 339 additions and 0 deletions.
43 changes: 43 additions & 0 deletions cache/api.github.com.json
Expand Up @@ -27179,6 +27179,33 @@
}
}
},
"repository-rule-params-thresholds": {
"title": "Thresholds",
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
"type": "object",
"properties": {
"code_scanning_alert_threshold": {
"type": "string",
"description": "Code scanning alert threshold",
"enum": ["none", "errors", "errors_and_warnings", "all"]
},
"code_scanning_security_alert_threshold": {
"type": "string",
"description": "Code scanning security alert threshold.",
"enum": [
"none",
"critical",
"high_or_higher",
"medium_or_higher",
"all"
]
}
},
"required": [
"code_scanning_alert_threshold",
"code_scanning_security_alert_threshold"
]
},
"repository-rule": {
"title": "Repository Rule",
"type": "object",
Expand Down Expand Up @@ -70440,11 +70467,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -163948,6 +163982,15 @@
"required": true,
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"since-user": {
"name": "since",
"description": "A user ID. Only return users with an ID greater than this ID.",
Expand Down
43 changes: 43 additions & 0 deletions cache/ghec.json
Expand Up @@ -28302,6 +28302,33 @@
}
}
},
"repository-rule-params-thresholds": {
"title": "Thresholds",
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
"type": "object",
"properties": {
"code_scanning_alert_threshold": {
"type": "string",
"description": "Code scanning alert threshold",
"enum": ["none", "errors", "errors_and_warnings", "all"]
},
"code_scanning_security_alert_threshold": {
"type": "string",
"description": "Code scanning security alert threshold.",
"enum": [
"none",
"critical",
"high_or_higher",
"medium_or_higher",
"all"
]
}
},
"required": [
"code_scanning_alert_threshold",
"code_scanning_security_alert_threshold"
]
},
"repository-rule": {
"title": "Repository Rule",
"type": "object",
Expand Down Expand Up @@ -72185,11 +72212,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -166716,6 +166750,15 @@
"required": true,
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"since-user": {
"name": "since",
"description": "A user ID. Only return users with an ID greater than this ID.",
Expand Down
16 changes: 16 additions & 0 deletions cache/ghes-3.10.json
Expand Up @@ -68197,11 +68197,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -155099,6 +155106,15 @@
"required": true,
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"invitation-id": {
"name": "invitation_id",
"description": "The unique identifier of the invitation.",
Expand Down
43 changes: 43 additions & 0 deletions cache/ghes-3.11.json
Expand Up @@ -28471,6 +28471,33 @@
}
}
},
"repository-rule-params-thresholds": {
"title": "Thresholds",
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
"type": "object",
"properties": {
"code_scanning_alert_threshold": {
"type": "string",
"description": "Code scanning alert threshold",
"enum": ["none", "errors", "errors_and_warnings", "all"]
},
"code_scanning_security_alert_threshold": {
"type": "string",
"description": "Code scanning security alert threshold.",
"enum": [
"none",
"critical",
"high_or_higher",
"medium_or_higher",
"all"
]
}
},
"required": [
"code_scanning_alert_threshold",
"code_scanning_security_alert_threshold"
]
},
"repository-rule": {
"title": "Repository Rule",
"type": "object",
Expand Down Expand Up @@ -69723,11 +69750,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -157149,6 +157183,15 @@
"required": true,
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"invitation-id": {
"name": "invitation_id",
"description": "The unique identifier of the invitation.",
Expand Down
43 changes: 43 additions & 0 deletions cache/ghes-3.12.json
Expand Up @@ -29121,6 +29121,33 @@
}
}
},
"repository-rule-params-thresholds": {
"title": "Thresholds",
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
"type": "object",
"properties": {
"code_scanning_alert_threshold": {
"type": "string",
"description": "Code scanning alert threshold",
"enum": ["none", "errors", "errors_and_warnings", "all"]
},
"code_scanning_security_alert_threshold": {
"type": "string",
"description": "Code scanning security alert threshold.",
"enum": [
"none",
"critical",
"high_or_higher",
"medium_or_higher",
"all"
]
}
},
"required": [
"code_scanning_alert_threshold",
"code_scanning_security_alert_threshold"
]
},
"repository-rule": {
"title": "Repository Rule",
"type": "object",
Expand Down Expand Up @@ -70580,11 +70607,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -158364,6 +158398,15 @@
"required": true,
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"invitation-id": {
"name": "invitation_id",
"description": "The unique identifier of the invitation.",
Expand Down
16 changes: 16 additions & 0 deletions cache/ghes-3.8.json
Expand Up @@ -65912,11 +65912,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -151507,6 +151514,15 @@
"description": "The unique identifier of the branch policy.",
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"invitation-id": {
"name": "invitation_id",
"description": "The unique identifier of the invitation.",
Expand Down
16 changes: 16 additions & 0 deletions cache/ghes-3.9.json
Expand Up @@ -67264,11 +67264,18 @@
"type": "object",
"properties": {
"permission": {
"description": "This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.",
"type": "object",
"properties": {
"to": { "type": "string", "enum": ["write", "admin", "read"] }
},
"required": ["to"]
},
"role_name": {
"description": "The role assigned to the collaborator.",
"type": "object",
"properties": { "to": { "type": "string" } },
"required": ["to"]
}
}
},
Expand Down Expand Up @@ -153692,6 +153699,15 @@
"description": "The unique identifier of the branch policy.",
"schema": { "type": "integer" }
},
"git-ref-only": {
"name": "ref",
"description": "The Git reference. For more information, see \"[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)\" in the Git documentation.",
"in": "path",
"required": true,
"example": "heads/feature-a",
"schema": { "type": "string" },
"x-multi-segment": true
},
"invitation-id": {
"name": "invitation_id",
"description": "The unique identifier of the invitation.",
Expand Down

0 comments on commit 43b9072

Please sign in to comment.