Skip to content

Commit 43b9072

Browse files
authored
FEAT: Adds repository-rule-params-thresholds, repository-rule.role_name, created.git-ref-only
2 parents 886e1cf + 22a1344 commit 43b9072

File tree

21 files changed

+339
-0
lines changed

21 files changed

+339
-0
lines changed

cache/api.github.com.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27179,6 +27179,33 @@
2717927179
}
2718027180
}
2718127181
},
27182+
"repository-rule-params-thresholds": {
27183+
"title": "Thresholds",
27184+
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
27185+
"type": "object",
27186+
"properties": {
27187+
"code_scanning_alert_threshold": {
27188+
"type": "string",
27189+
"description": "Code scanning alert threshold",
27190+
"enum": ["none", "errors", "errors_and_warnings", "all"]
27191+
},
27192+
"code_scanning_security_alert_threshold": {
27193+
"type": "string",
27194+
"description": "Code scanning security alert threshold.",
27195+
"enum": [
27196+
"none",
27197+
"critical",
27198+
"high_or_higher",
27199+
"medium_or_higher",
27200+
"all"
27201+
]
27202+
}
27203+
},
27204+
"required": [
27205+
"code_scanning_alert_threshold",
27206+
"code_scanning_security_alert_threshold"
27207+
]
27208+
},
2718227209
"repository-rule": {
2718327210
"title": "Repository Rule",
2718427211
"type": "object",
@@ -70440,11 +70467,18 @@
7044070467
"type": "object",
7044170468
"properties": {
7044270469
"permission": {
70470+
"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.",
7044370471
"type": "object",
7044470472
"properties": {
7044570473
"to": { "type": "string", "enum": ["write", "admin", "read"] }
7044670474
},
7044770475
"required": ["to"]
70476+
},
70477+
"role_name": {
70478+
"description": "The role assigned to the collaborator.",
70479+
"type": "object",
70480+
"properties": { "to": { "type": "string" } },
70481+
"required": ["to"]
7044870482
}
7044970483
}
7045070484
},
@@ -163948,6 +163982,15 @@
163948163982
"required": true,
163949163983
"schema": { "type": "integer" }
163950163984
},
163985+
"git-ref-only": {
163986+
"name": "ref",
163987+
"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.",
163988+
"in": "path",
163989+
"required": true,
163990+
"example": "heads/feature-a",
163991+
"schema": { "type": "string" },
163992+
"x-multi-segment": true
163993+
},
163951163994
"since-user": {
163952163995
"name": "since",
163953163996
"description": "A user ID. Only return users with an ID greater than this ID.",

cache/ghec.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28302,6 +28302,33 @@
2830228302
}
2830328303
}
2830428304
},
28305+
"repository-rule-params-thresholds": {
28306+
"title": "Thresholds",
28307+
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
28308+
"type": "object",
28309+
"properties": {
28310+
"code_scanning_alert_threshold": {
28311+
"type": "string",
28312+
"description": "Code scanning alert threshold",
28313+
"enum": ["none", "errors", "errors_and_warnings", "all"]
28314+
},
28315+
"code_scanning_security_alert_threshold": {
28316+
"type": "string",
28317+
"description": "Code scanning security alert threshold.",
28318+
"enum": [
28319+
"none",
28320+
"critical",
28321+
"high_or_higher",
28322+
"medium_or_higher",
28323+
"all"
28324+
]
28325+
}
28326+
},
28327+
"required": [
28328+
"code_scanning_alert_threshold",
28329+
"code_scanning_security_alert_threshold"
28330+
]
28331+
},
2830528332
"repository-rule": {
2830628333
"title": "Repository Rule",
2830728334
"type": "object",
@@ -72185,11 +72212,18 @@
7218572212
"type": "object",
7218672213
"properties": {
7218772214
"permission": {
72215+
"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.",
7218872216
"type": "object",
7218972217
"properties": {
7219072218
"to": { "type": "string", "enum": ["write", "admin", "read"] }
7219172219
},
7219272220
"required": ["to"]
72221+
},
72222+
"role_name": {
72223+
"description": "The role assigned to the collaborator.",
72224+
"type": "object",
72225+
"properties": { "to": { "type": "string" } },
72226+
"required": ["to"]
7219372227
}
7219472228
}
7219572229
},
@@ -166716,6 +166750,15 @@
166716166750
"required": true,
166717166751
"schema": { "type": "integer" }
166718166752
},
166753+
"git-ref-only": {
166754+
"name": "ref",
166755+
"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.",
166756+
"in": "path",
166757+
"required": true,
166758+
"example": "heads/feature-a",
166759+
"schema": { "type": "string" },
166760+
"x-multi-segment": true
166761+
},
166719166762
"since-user": {
166720166763
"name": "since",
166721166764
"description": "A user ID. Only return users with an ID greater than this ID.",

cache/ghes-3.10.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68197,11 +68197,18 @@
6819768197
"type": "object",
6819868198
"properties": {
6819968199
"permission": {
68200+
"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.",
6820068201
"type": "object",
6820168202
"properties": {
6820268203
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6820368204
},
6820468205
"required": ["to"]
68206+
},
68207+
"role_name": {
68208+
"description": "The role assigned to the collaborator.",
68209+
"type": "object",
68210+
"properties": { "to": { "type": "string" } },
68211+
"required": ["to"]
6820568212
}
6820668213
}
6820768214
},
@@ -155099,6 +155106,15 @@
155099155106
"required": true,
155100155107
"schema": { "type": "integer" }
155101155108
},
155109+
"git-ref-only": {
155110+
"name": "ref",
155111+
"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.",
155112+
"in": "path",
155113+
"required": true,
155114+
"example": "heads/feature-a",
155115+
"schema": { "type": "string" },
155116+
"x-multi-segment": true
155117+
},
155102155118
"invitation-id": {
155103155119
"name": "invitation_id",
155104155120
"description": "The unique identifier of the invitation.",

cache/ghes-3.11.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28471,6 +28471,33 @@
2847128471
}
2847228472
}
2847328473
},
28474+
"repository-rule-params-thresholds": {
28475+
"title": "Thresholds",
28476+
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
28477+
"type": "object",
28478+
"properties": {
28479+
"code_scanning_alert_threshold": {
28480+
"type": "string",
28481+
"description": "Code scanning alert threshold",
28482+
"enum": ["none", "errors", "errors_and_warnings", "all"]
28483+
},
28484+
"code_scanning_security_alert_threshold": {
28485+
"type": "string",
28486+
"description": "Code scanning security alert threshold.",
28487+
"enum": [
28488+
"none",
28489+
"critical",
28490+
"high_or_higher",
28491+
"medium_or_higher",
28492+
"all"
28493+
]
28494+
}
28495+
},
28496+
"required": [
28497+
"code_scanning_alert_threshold",
28498+
"code_scanning_security_alert_threshold"
28499+
]
28500+
},
2847428501
"repository-rule": {
2847528502
"title": "Repository Rule",
2847628503
"type": "object",
@@ -69723,11 +69750,18 @@
6972369750
"type": "object",
6972469751
"properties": {
6972569752
"permission": {
69753+
"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.",
6972669754
"type": "object",
6972769755
"properties": {
6972869756
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6972969757
},
6973069758
"required": ["to"]
69759+
},
69760+
"role_name": {
69761+
"description": "The role assigned to the collaborator.",
69762+
"type": "object",
69763+
"properties": { "to": { "type": "string" } },
69764+
"required": ["to"]
6973169765
}
6973269766
}
6973369767
},
@@ -157149,6 +157183,15 @@
157149157183
"required": true,
157150157184
"schema": { "type": "integer" }
157151157185
},
157186+
"git-ref-only": {
157187+
"name": "ref",
157188+
"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.",
157189+
"in": "path",
157190+
"required": true,
157191+
"example": "heads/feature-a",
157192+
"schema": { "type": "string" },
157193+
"x-multi-segment": true
157194+
},
157152157195
"invitation-id": {
157153157196
"name": "invitation_id",
157154157197
"description": "The unique identifier of the invitation.",

cache/ghes-3.12.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29121,6 +29121,33 @@
2912129121
}
2912229122
}
2912329123
},
29124+
"repository-rule-params-thresholds": {
29125+
"title": "Thresholds",
29126+
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
29127+
"type": "object",
29128+
"properties": {
29129+
"code_scanning_alert_threshold": {
29130+
"type": "string",
29131+
"description": "Code scanning alert threshold",
29132+
"enum": ["none", "errors", "errors_and_warnings", "all"]
29133+
},
29134+
"code_scanning_security_alert_threshold": {
29135+
"type": "string",
29136+
"description": "Code scanning security alert threshold.",
29137+
"enum": [
29138+
"none",
29139+
"critical",
29140+
"high_or_higher",
29141+
"medium_or_higher",
29142+
"all"
29143+
]
29144+
}
29145+
},
29146+
"required": [
29147+
"code_scanning_alert_threshold",
29148+
"code_scanning_security_alert_threshold"
29149+
]
29150+
},
2912429151
"repository-rule": {
2912529152
"title": "Repository Rule",
2912629153
"type": "object",
@@ -70580,11 +70607,18 @@
7058070607
"type": "object",
7058170608
"properties": {
7058270609
"permission": {
70610+
"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.",
7058370611
"type": "object",
7058470612
"properties": {
7058570613
"to": { "type": "string", "enum": ["write", "admin", "read"] }
7058670614
},
7058770615
"required": ["to"]
70616+
},
70617+
"role_name": {
70618+
"description": "The role assigned to the collaborator.",
70619+
"type": "object",
70620+
"properties": { "to": { "type": "string" } },
70621+
"required": ["to"]
7058870622
}
7058970623
}
7059070624
},
@@ -158364,6 +158398,15 @@
158364158398
"required": true,
158365158399
"schema": { "type": "integer" }
158366158400
},
158401+
"git-ref-only": {
158402+
"name": "ref",
158403+
"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.",
158404+
"in": "path",
158405+
"required": true,
158406+
"example": "heads/feature-a",
158407+
"schema": { "type": "string" },
158408+
"x-multi-segment": true
158409+
},
158367158410
"invitation-id": {
158368158411
"name": "invitation_id",
158369158412
"description": "The unique identifier of the invitation.",

cache/ghes-3.8.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65912,11 +65912,18 @@
6591265912
"type": "object",
6591365913
"properties": {
6591465914
"permission": {
65915+
"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.",
6591565916
"type": "object",
6591665917
"properties": {
6591765918
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6591865919
},
6591965920
"required": ["to"]
65921+
},
65922+
"role_name": {
65923+
"description": "The role assigned to the collaborator.",
65924+
"type": "object",
65925+
"properties": { "to": { "type": "string" } },
65926+
"required": ["to"]
6592065927
}
6592165928
}
6592265929
},
@@ -151507,6 +151514,15 @@
151507151514
"description": "The unique identifier of the branch policy.",
151508151515
"schema": { "type": "integer" }
151509151516
},
151517+
"git-ref-only": {
151518+
"name": "ref",
151519+
"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.",
151520+
"in": "path",
151521+
"required": true,
151522+
"example": "heads/feature-a",
151523+
"schema": { "type": "string" },
151524+
"x-multi-segment": true
151525+
},
151510151526
"invitation-id": {
151511151527
"name": "invitation_id",
151512151528
"description": "The unique identifier of the invitation.",

cache/ghes-3.9.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67264,11 +67264,18 @@
6726467264
"type": "object",
6726567265
"properties": {
6726667266
"permission": {
67267+
"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.",
6726767268
"type": "object",
6726867269
"properties": {
6726967270
"to": { "type": "string", "enum": ["write", "admin", "read"] }
6727067271
},
6727167272
"required": ["to"]
67273+
},
67274+
"role_name": {
67275+
"description": "The role assigned to the collaborator.",
67276+
"type": "object",
67277+
"properties": { "to": { "type": "string" } },
67278+
"required": ["to"]
6727267279
}
6727367280
}
6727467281
},
@@ -153692,6 +153699,15 @@
153692153699
"description": "The unique identifier of the branch policy.",
153693153700
"schema": { "type": "integer" }
153694153701
},
153702+
"git-ref-only": {
153703+
"name": "ref",
153704+
"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.",
153705+
"in": "path",
153706+
"required": true,
153707+
"example": "heads/feature-a",
153708+
"schema": { "type": "string" },
153709+
"x-multi-segment": true
153710+
},
153695153711
"invitation-id": {
153696153712
"name": "invitation_id",
153697153713
"description": "The unique identifier of the invitation.",

0 commit comments

Comments
 (0)