github-settings-as-code 1.2.10 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -9
- package/dist/cmd/{gh-apply-all.d.mts → repo-settings.d.mts} +1 -1
- package/dist/cmd/repo-settings.d.mts.map +1 -0
- package/dist/cmd/repo-settings.mjs +118 -0
- package/dist/cmd/repo-settings.mjs.map +1 -0
- package/dist/github/actions-settings/api/get-actions-settings.d.mts +8 -0
- package/dist/github/actions-settings/api/get-actions-settings.d.mts.map +1 -0
- package/dist/github/actions-settings/api/get-actions-settings.mjs +25 -0
- package/dist/github/actions-settings/api/get-actions-settings.mjs.map +1 -0
- package/dist/github/actions-settings/api/index.d.mts +3 -0
- package/dist/github/actions-settings/api/index.d.mts.map +1 -0
- package/dist/github/actions-settings/api/index.mjs +3 -0
- package/dist/github/actions-settings/api/index.mjs.map +1 -0
- package/dist/github/actions-settings/api/set-actions-settings.d.mts +4 -0
- package/dist/github/actions-settings/api/set-actions-settings.d.mts.map +1 -0
- package/dist/github/actions-settings/api/set-actions-settings.mjs +27 -0
- package/dist/github/actions-settings/api/set-actions-settings.mjs.map +1 -0
- package/dist/github/actions-settings/apply.d.mts +5 -0
- package/dist/github/actions-settings/apply.d.mts.map +1 -0
- package/dist/github/actions-settings/apply.mjs +39 -0
- package/dist/github/actions-settings/apply.mjs.map +1 -0
- package/dist/github/actions-settings/backup.d.mts +5 -0
- package/dist/github/actions-settings/backup.d.mts.map +1 -0
- package/dist/github/actions-settings/backup.mjs +22 -0
- package/dist/github/actions-settings/backup.mjs.map +1 -0
- package/dist/github/actions-settings/constants.d.mts +69 -0
- package/dist/github/actions-settings/constants.d.mts.map +1 -0
- package/dist/github/actions-settings/constants.mjs +42 -0
- package/dist/github/actions-settings/constants.mjs.map +1 -0
- package/dist/github/actions-settings/index.d.mts +5 -0
- package/dist/github/actions-settings/index.d.mts.map +1 -0
- package/dist/github/actions-settings/index.mjs +5 -0
- package/dist/github/actions-settings/index.mjs.map +1 -0
- package/dist/github/constants.d.mts +3 -1
- package/dist/github/constants.d.mts.map +1 -1
- package/dist/github/constants.mjs +7 -31
- package/dist/github/constants.mjs.map +1 -1
- package/dist/github/index.d.mts +4 -0
- package/dist/github/index.d.mts.map +1 -1
- package/dist/github/index.mjs +4 -0
- package/dist/github/index.mjs.map +1 -1
- package/dist/github/octokit.d.mts.map +1 -1
- package/dist/github/octokit.mjs +39 -3
- package/dist/github/octokit.mjs.map +1 -1
- package/dist/github/pages/api/get-pages-settings.d.mts +8 -0
- package/dist/github/pages/api/get-pages-settings.d.mts.map +1 -0
- package/dist/github/pages/api/get-pages-settings.mjs +26 -0
- package/dist/github/pages/api/get-pages-settings.mjs.map +1 -0
- package/dist/github/pages/api/index.d.mts +3 -0
- package/dist/github/pages/api/index.d.mts.map +1 -0
- package/dist/github/pages/api/index.mjs +3 -0
- package/dist/github/pages/api/index.mjs.map +1 -0
- package/dist/github/pages/api/set-pages-settings.d.mts +9 -0
- package/dist/github/pages/api/set-pages-settings.d.mts.map +1 -0
- package/dist/github/pages/api/set-pages-settings.mjs +33 -0
- package/dist/github/pages/api/set-pages-settings.mjs.map +1 -0
- package/dist/github/pages/apply.d.mts +10 -0
- package/dist/github/pages/apply.d.mts.map +1 -0
- package/dist/github/pages/apply.mjs +49 -0
- package/dist/github/pages/apply.mjs.map +1 -0
- package/dist/github/pages/backup.d.mts +5 -0
- package/dist/github/pages/backup.d.mts.map +1 -0
- package/dist/github/pages/backup.mjs +26 -0
- package/dist/github/pages/backup.mjs.map +1 -0
- package/dist/github/pages/constants.d.mts +42 -0
- package/dist/github/pages/constants.d.mts.map +1 -0
- package/dist/github/pages/constants.mjs +14 -0
- package/dist/github/pages/constants.mjs.map +1 -0
- package/dist/github/pages/index.d.mts +5 -0
- package/dist/github/pages/index.d.mts.map +1 -0
- package/dist/github/pages/index.mjs +5 -0
- package/dist/github/pages/index.mjs.map +1 -0
- package/dist/github/repository/apply.d.mts.map +1 -1
- package/dist/github/repository/apply.mjs +4 -4
- package/dist/github/repository/apply.mjs.map +1 -1
- package/dist/github/repository/backup.d.mts.map +1 -1
- package/dist/github/repository/backup.mjs +2 -2
- package/dist/github/repository/backup.mjs.map +1 -1
- package/dist/github/repository/constants.d.mts +3259 -2024
- package/dist/github/repository/constants.d.mts.map +1 -1
- package/dist/github/repository/constants.mjs +2 -1
- package/dist/github/repository/constants.mjs.map +1 -1
- package/dist/github/resolve-target-repo.d.mts +16 -0
- package/dist/github/resolve-target-repo.d.mts.map +1 -0
- package/dist/github/resolve-target-repo.mjs +113 -0
- package/dist/github/resolve-target-repo.mjs.map +1 -0
- package/dist/github/ruleset/api/get-all-rulesets.d.mts.map +1 -1
- package/dist/github/ruleset/api/get-all-rulesets.mjs.map +1 -1
- package/dist/github/ruleset/constants.d.mts +750 -267
- package/dist/github/ruleset/constants.d.mts.map +1 -1
- package/dist/github/ruleset/constants.mjs +2 -1
- package/dist/github/ruleset/constants.mjs.map +1 -1
- package/dist/github/upgrade-stale-codec.d.mts +19 -0
- package/dist/github/upgrade-stale-codec.d.mts.map +1 -0
- package/dist/github/upgrade-stale-codec.mjs +20 -0
- package/dist/github/upgrade-stale-codec.mjs.map +1 -0
- package/dist/github/variables/apply.d.mts.map +1 -1
- package/dist/github/variables/apply.mjs +9 -6
- package/dist/github/variables/apply.mjs.map +1 -1
- package/package.json +41 -50
- package/src/cmd/repo-settings.mts +153 -0
- package/src/github/actions-settings/api/get-actions-settings.mts +38 -0
- package/src/github/actions-settings/api/index.mts +2 -0
- package/src/github/actions-settings/api/set-actions-settings.mts +39 -0
- package/src/github/actions-settings/apply.mts +63 -0
- package/src/github/actions-settings/backup.mts +36 -0
- package/src/github/actions-settings/constants.mts +50 -0
- package/src/github/actions-settings/index.mts +4 -0
- package/src/github/constants.mts +9 -42
- package/src/github/index.mts +4 -0
- package/src/github/octokit.mts +47 -3
- package/src/github/pages/api/get-pages-settings.mts +35 -0
- package/src/github/pages/api/index.mts +2 -0
- package/src/github/pages/api/set-pages-settings.mts +47 -0
- package/src/github/pages/apply.mts +73 -0
- package/src/github/pages/backup.mts +44 -0
- package/src/github/pages/constants.mts +16 -0
- package/src/github/pages/index.mts +4 -0
- package/src/github/repository/apply.mts +4 -7
- package/src/github/repository/backup.mts +2 -5
- package/src/github/repository/constants.mts +5 -1
- package/src/github/resolve-target-repo.mts +144 -0
- package/src/github/ruleset/api/get-all-rulesets.mts +3 -6
- package/src/github/ruleset/constants.mts +5 -1
- package/src/github/upgrade-stale-codec.mts +29 -0
- package/src/github/variables/apply.mts +9 -6
- package/dist/cmd/gh-apply-all.d.mts.map +0 -1
- package/dist/cmd/gh-apply-all.mjs +0 -10
- package/dist/cmd/gh-apply-all.mjs.map +0 -1
- package/dist/cmd/gh-backup-all.d.mts +0 -3
- package/dist/cmd/gh-backup-all.d.mts.map +0 -1
- package/dist/cmd/gh-backup-all.mjs +0 -9
- package/dist/cmd/gh-backup-all.mjs.map +0 -1
- package/src/cmd/gh-apply-all.mts +0 -18
- package/src/cmd/gh-backup-all.mts +0 -12
|
@@ -3,16 +3,24 @@ export declare const rulesetKeysToPick: readonly ["id", "name", "target", "enfor
|
|
|
3
3
|
export declare const RulesetPicked: Readonly<{
|
|
4
4
|
typeName: string;
|
|
5
5
|
defaultValue: Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly updated_at?: string | undefined;
|
|
9
|
-
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
6
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
7
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
10
8
|
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
11
9
|
readonly actor_id?: number | null | undefined;
|
|
12
|
-
readonly bypass_mode?: "always" | "
|
|
10
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
13
11
|
} & {
|
|
14
|
-
actor_type: "
|
|
12
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
15
13
|
}>>[] | undefined;
|
|
14
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
15
|
+
readonly node_id?: string | undefined;
|
|
16
|
+
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
17
|
+
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
18
|
+
readonly href?: string | undefined;
|
|
19
|
+
}>> | undefined;
|
|
20
|
+
readonly html?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
21
|
+
readonly href?: string | undefined;
|
|
22
|
+
}>> | null | undefined;
|
|
23
|
+
}>> | undefined;
|
|
16
24
|
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
17
25
|
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
18
26
|
readonly include?: readonly string[] | undefined;
|
|
@@ -59,25 +67,19 @@ export declare const RulesetPicked: Readonly<{
|
|
|
59
67
|
}>>[] | undefined;
|
|
60
68
|
}>>;
|
|
61
69
|
}>> | null | undefined;
|
|
62
|
-
readonly rules?: readonly (Readonly<{
|
|
63
|
-
type: "creation";
|
|
64
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
70
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
65
71
|
readonly parameters?: Readonly<{
|
|
66
72
|
update_allows_fetch_and_merge: boolean;
|
|
67
73
|
}> | undefined;
|
|
68
74
|
} & {
|
|
69
75
|
type: "update";
|
|
70
|
-
}>> | Readonly<{
|
|
71
|
-
type: "deletion";
|
|
72
|
-
}> | Readonly<{
|
|
73
|
-
type: "required_linear_history";
|
|
74
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
76
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
75
77
|
readonly parameters?: Readonly<{
|
|
76
|
-
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
77
|
-
merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
78
78
|
check_response_timeout_minutes: number;
|
|
79
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
79
80
|
max_entries_to_build: number;
|
|
80
81
|
max_entries_to_merge: number;
|
|
82
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
81
83
|
min_entries_to_merge: number;
|
|
82
84
|
min_entries_to_merge_wait_minutes: number;
|
|
83
85
|
}> | undefined;
|
|
@@ -89,11 +91,9 @@ export declare const RulesetPicked: Readonly<{
|
|
|
89
91
|
}> | undefined;
|
|
90
92
|
} & {
|
|
91
93
|
type: "required_deployments";
|
|
92
|
-
}>> | Readonly<{
|
|
93
|
-
type: "required_signatures";
|
|
94
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
94
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
95
95
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
96
|
-
readonly allowed_merge_methods?: readonly ("merge" | "
|
|
96
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
97
97
|
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
98
98
|
} & {
|
|
99
99
|
dismiss_stale_reviews_on_push: boolean;
|
|
@@ -117,14 +117,12 @@ export declare const RulesetPicked: Readonly<{
|
|
|
117
117
|
}>> | undefined;
|
|
118
118
|
} & {
|
|
119
119
|
type: "required_status_checks";
|
|
120
|
-
}>> | Readonly<{
|
|
121
|
-
type: "non_fast_forward";
|
|
122
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
120
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
123
121
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
124
122
|
readonly name?: string | undefined;
|
|
125
123
|
readonly negate?: boolean | undefined;
|
|
126
124
|
} & {
|
|
127
|
-
operator: "
|
|
125
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
128
126
|
pattern: string;
|
|
129
127
|
}>> | undefined;
|
|
130
128
|
} & {
|
|
@@ -134,7 +132,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
134
132
|
readonly name?: string | undefined;
|
|
135
133
|
readonly negate?: boolean | undefined;
|
|
136
134
|
} & {
|
|
137
|
-
operator: "
|
|
135
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
138
136
|
pattern: string;
|
|
139
137
|
}>> | undefined;
|
|
140
138
|
} & {
|
|
@@ -144,7 +142,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
144
142
|
readonly name?: string | undefined;
|
|
145
143
|
readonly negate?: boolean | undefined;
|
|
146
144
|
} & {
|
|
147
|
-
operator: "
|
|
145
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
148
146
|
pattern: string;
|
|
149
147
|
}>> | undefined;
|
|
150
148
|
} & {
|
|
@@ -154,7 +152,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
154
152
|
readonly name?: string | undefined;
|
|
155
153
|
readonly negate?: boolean | undefined;
|
|
156
154
|
} & {
|
|
157
|
-
operator: "
|
|
155
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
158
156
|
pattern: string;
|
|
159
157
|
}>> | undefined;
|
|
160
158
|
} & {
|
|
@@ -164,7 +162,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
164
162
|
readonly name?: string | undefined;
|
|
165
163
|
readonly negate?: boolean | undefined;
|
|
166
164
|
} & {
|
|
167
|
-
operator: "
|
|
165
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
168
166
|
pattern: string;
|
|
169
167
|
}>> | undefined;
|
|
170
168
|
} & {
|
|
@@ -210,8 +208,8 @@ export declare const RulesetPicked: Readonly<{
|
|
|
210
208
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
211
209
|
readonly parameters?: Readonly<{
|
|
212
210
|
code_scanning_tools: readonly Readonly<{
|
|
213
|
-
alerts_threshold: "
|
|
214
|
-
security_alerts_threshold: "
|
|
211
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
212
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
215
213
|
tool: string;
|
|
216
214
|
}>[];
|
|
217
215
|
}> | undefined;
|
|
@@ -219,42 +217,52 @@ export declare const RulesetPicked: Readonly<{
|
|
|
219
217
|
type: "code_scanning";
|
|
220
218
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
221
219
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
222
|
-
review_on_push: boolean;
|
|
223
220
|
review_draft_pull_requests: boolean;
|
|
224
|
-
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
225
221
|
review_on_push: boolean;
|
|
222
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
226
223
|
review_draft_pull_requests: boolean;
|
|
227
|
-
|
|
224
|
+
review_on_push: boolean;
|
|
225
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
228
226
|
} & {
|
|
229
227
|
type: "copilot_code_review";
|
|
230
|
-
}>>
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
228
|
+
}>> | Readonly<{
|
|
229
|
+
type: "creation";
|
|
230
|
+
}> | Readonly<{
|
|
231
|
+
type: "deletion";
|
|
232
|
+
}> | Readonly<{
|
|
233
|
+
type: "required_linear_history";
|
|
234
|
+
}> | Readonly<{
|
|
235
|
+
type: "required_signatures";
|
|
236
|
+
}> | Readonly<{
|
|
237
|
+
type: "non_fast_forward";
|
|
238
|
+
}>)[] | undefined;
|
|
239
|
+
readonly created_at?: string | undefined;
|
|
240
|
+
readonly updated_at?: string | undefined;
|
|
241
241
|
} & {
|
|
242
|
-
|
|
242
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
243
243
|
id: number;
|
|
244
|
+
name: string;
|
|
244
245
|
source: string;
|
|
245
|
-
enforcement: "disabled" | "active" | "evaluate";
|
|
246
246
|
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
|
|
247
247
|
is: (a: unknown) => a is Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
248
|
-
readonly
|
|
249
|
-
readonly
|
|
250
|
-
readonly updated_at?: string | undefined;
|
|
251
|
-
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
248
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
249
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
252
250
|
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
253
251
|
readonly actor_id?: number | null | undefined;
|
|
254
|
-
readonly bypass_mode?: "always" | "
|
|
252
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
255
253
|
} & {
|
|
256
|
-
actor_type: "
|
|
254
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
257
255
|
}>>[] | undefined;
|
|
256
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
257
|
+
readonly node_id?: string | undefined;
|
|
258
|
+
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
259
|
+
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
260
|
+
readonly href?: string | undefined;
|
|
261
|
+
}>> | undefined;
|
|
262
|
+
readonly html?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
263
|
+
readonly href?: string | undefined;
|
|
264
|
+
}>> | null | undefined;
|
|
265
|
+
}>> | undefined;
|
|
258
266
|
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
259
267
|
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
260
268
|
readonly include?: readonly string[] | undefined;
|
|
@@ -301,25 +309,19 @@ export declare const RulesetPicked: Readonly<{
|
|
|
301
309
|
}>>[] | undefined;
|
|
302
310
|
}>>;
|
|
303
311
|
}>> | null | undefined;
|
|
304
|
-
readonly rules?: readonly (Readonly<{
|
|
305
|
-
type: "creation";
|
|
306
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
312
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
307
313
|
readonly parameters?: Readonly<{
|
|
308
314
|
update_allows_fetch_and_merge: boolean;
|
|
309
315
|
}> | undefined;
|
|
310
316
|
} & {
|
|
311
317
|
type: "update";
|
|
312
|
-
}>> | Readonly<{
|
|
313
|
-
type: "deletion";
|
|
314
|
-
}> | Readonly<{
|
|
315
|
-
type: "required_linear_history";
|
|
316
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
318
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
317
319
|
readonly parameters?: Readonly<{
|
|
318
|
-
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
319
|
-
merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
320
320
|
check_response_timeout_minutes: number;
|
|
321
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
321
322
|
max_entries_to_build: number;
|
|
322
323
|
max_entries_to_merge: number;
|
|
324
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
323
325
|
min_entries_to_merge: number;
|
|
324
326
|
min_entries_to_merge_wait_minutes: number;
|
|
325
327
|
}> | undefined;
|
|
@@ -331,11 +333,9 @@ export declare const RulesetPicked: Readonly<{
|
|
|
331
333
|
}> | undefined;
|
|
332
334
|
} & {
|
|
333
335
|
type: "required_deployments";
|
|
334
|
-
}>> | Readonly<{
|
|
335
|
-
type: "required_signatures";
|
|
336
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
336
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
337
337
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
338
|
-
readonly allowed_merge_methods?: readonly ("merge" | "
|
|
338
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
339
339
|
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
340
340
|
} & {
|
|
341
341
|
dismiss_stale_reviews_on_push: boolean;
|
|
@@ -359,14 +359,12 @@ export declare const RulesetPicked: Readonly<{
|
|
|
359
359
|
}>> | undefined;
|
|
360
360
|
} & {
|
|
361
361
|
type: "required_status_checks";
|
|
362
|
-
}>> | Readonly<{
|
|
363
|
-
type: "non_fast_forward";
|
|
364
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
362
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
365
363
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
366
364
|
readonly name?: string | undefined;
|
|
367
365
|
readonly negate?: boolean | undefined;
|
|
368
366
|
} & {
|
|
369
|
-
operator: "
|
|
367
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
370
368
|
pattern: string;
|
|
371
369
|
}>> | undefined;
|
|
372
370
|
} & {
|
|
@@ -376,7 +374,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
376
374
|
readonly name?: string | undefined;
|
|
377
375
|
readonly negate?: boolean | undefined;
|
|
378
376
|
} & {
|
|
379
|
-
operator: "
|
|
377
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
380
378
|
pattern: string;
|
|
381
379
|
}>> | undefined;
|
|
382
380
|
} & {
|
|
@@ -386,7 +384,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
386
384
|
readonly name?: string | undefined;
|
|
387
385
|
readonly negate?: boolean | undefined;
|
|
388
386
|
} & {
|
|
389
|
-
operator: "
|
|
387
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
390
388
|
pattern: string;
|
|
391
389
|
}>> | undefined;
|
|
392
390
|
} & {
|
|
@@ -396,7 +394,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
396
394
|
readonly name?: string | undefined;
|
|
397
395
|
readonly negate?: boolean | undefined;
|
|
398
396
|
} & {
|
|
399
|
-
operator: "
|
|
397
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
400
398
|
pattern: string;
|
|
401
399
|
}>> | undefined;
|
|
402
400
|
} & {
|
|
@@ -406,7 +404,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
406
404
|
readonly name?: string | undefined;
|
|
407
405
|
readonly negate?: boolean | undefined;
|
|
408
406
|
} & {
|
|
409
|
-
operator: "
|
|
407
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
410
408
|
pattern: string;
|
|
411
409
|
}>> | undefined;
|
|
412
410
|
} & {
|
|
@@ -452,8 +450,8 @@ export declare const RulesetPicked: Readonly<{
|
|
|
452
450
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
453
451
|
readonly parameters?: Readonly<{
|
|
454
452
|
code_scanning_tools: readonly Readonly<{
|
|
455
|
-
alerts_threshold: "
|
|
456
|
-
security_alerts_threshold: "
|
|
453
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
454
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
457
455
|
tool: string;
|
|
458
456
|
}>[];
|
|
459
457
|
}> | undefined;
|
|
@@ -461,42 +459,52 @@ export declare const RulesetPicked: Readonly<{
|
|
|
461
459
|
type: "code_scanning";
|
|
462
460
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
463
461
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
464
|
-
review_on_push: boolean;
|
|
465
462
|
review_draft_pull_requests: boolean;
|
|
466
|
-
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
467
463
|
review_on_push: boolean;
|
|
464
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
468
465
|
review_draft_pull_requests: boolean;
|
|
469
|
-
|
|
466
|
+
review_on_push: boolean;
|
|
467
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
470
468
|
} & {
|
|
471
469
|
type: "copilot_code_review";
|
|
472
|
-
}>>
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
470
|
+
}>> | Readonly<{
|
|
471
|
+
type: "creation";
|
|
472
|
+
}> | Readonly<{
|
|
473
|
+
type: "deletion";
|
|
474
|
+
}> | Readonly<{
|
|
475
|
+
type: "required_linear_history";
|
|
476
|
+
}> | Readonly<{
|
|
477
|
+
type: "required_signatures";
|
|
478
|
+
}> | Readonly<{
|
|
479
|
+
type: "non_fast_forward";
|
|
480
|
+
}>)[] | undefined;
|
|
481
|
+
readonly created_at?: string | undefined;
|
|
482
|
+
readonly updated_at?: string | undefined;
|
|
483
483
|
} & {
|
|
484
|
-
|
|
484
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
485
485
|
id: number;
|
|
486
|
+
name: string;
|
|
486
487
|
source: string;
|
|
487
|
-
enforcement: "disabled" | "active" | "evaluate";
|
|
488
488
|
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
|
|
489
489
|
assertIs: (a: unknown) => asserts a is Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
490
|
-
readonly
|
|
491
|
-
readonly
|
|
492
|
-
readonly updated_at?: string | undefined;
|
|
493
|
-
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
490
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
491
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
494
492
|
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
495
493
|
readonly actor_id?: number | null | undefined;
|
|
496
|
-
readonly bypass_mode?: "always" | "
|
|
494
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
497
495
|
} & {
|
|
498
|
-
actor_type: "
|
|
496
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
499
497
|
}>>[] | undefined;
|
|
498
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
499
|
+
readonly node_id?: string | undefined;
|
|
500
|
+
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
501
|
+
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
502
|
+
readonly href?: string | undefined;
|
|
503
|
+
}>> | undefined;
|
|
504
|
+
readonly html?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
505
|
+
readonly href?: string | undefined;
|
|
506
|
+
}>> | null | undefined;
|
|
507
|
+
}>> | undefined;
|
|
500
508
|
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
501
509
|
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
502
510
|
readonly include?: readonly string[] | undefined;
|
|
@@ -543,25 +551,19 @@ export declare const RulesetPicked: Readonly<{
|
|
|
543
551
|
}>>[] | undefined;
|
|
544
552
|
}>>;
|
|
545
553
|
}>> | null | undefined;
|
|
546
|
-
readonly rules?: readonly (Readonly<{
|
|
547
|
-
type: "creation";
|
|
548
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
554
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
549
555
|
readonly parameters?: Readonly<{
|
|
550
556
|
update_allows_fetch_and_merge: boolean;
|
|
551
557
|
}> | undefined;
|
|
552
558
|
} & {
|
|
553
559
|
type: "update";
|
|
554
|
-
}>> | Readonly<{
|
|
555
|
-
type: "deletion";
|
|
556
|
-
}> | Readonly<{
|
|
557
|
-
type: "required_linear_history";
|
|
558
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
560
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
559
561
|
readonly parameters?: Readonly<{
|
|
560
|
-
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
561
|
-
merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
562
562
|
check_response_timeout_minutes: number;
|
|
563
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
563
564
|
max_entries_to_build: number;
|
|
564
565
|
max_entries_to_merge: number;
|
|
566
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
565
567
|
min_entries_to_merge: number;
|
|
566
568
|
min_entries_to_merge_wait_minutes: number;
|
|
567
569
|
}> | undefined;
|
|
@@ -573,11 +575,9 @@ export declare const RulesetPicked: Readonly<{
|
|
|
573
575
|
}> | undefined;
|
|
574
576
|
} & {
|
|
575
577
|
type: "required_deployments";
|
|
576
|
-
}>> | Readonly<{
|
|
577
|
-
type: "required_signatures";
|
|
578
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
578
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
579
579
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
580
|
-
readonly allowed_merge_methods?: readonly ("merge" | "
|
|
580
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
581
581
|
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
582
582
|
} & {
|
|
583
583
|
dismiss_stale_reviews_on_push: boolean;
|
|
@@ -601,14 +601,12 @@ export declare const RulesetPicked: Readonly<{
|
|
|
601
601
|
}>> | undefined;
|
|
602
602
|
} & {
|
|
603
603
|
type: "required_status_checks";
|
|
604
|
-
}>> | Readonly<{
|
|
605
|
-
type: "non_fast_forward";
|
|
606
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
604
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
607
605
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
608
606
|
readonly name?: string | undefined;
|
|
609
607
|
readonly negate?: boolean | undefined;
|
|
610
608
|
} & {
|
|
611
|
-
operator: "
|
|
609
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
612
610
|
pattern: string;
|
|
613
611
|
}>> | undefined;
|
|
614
612
|
} & {
|
|
@@ -618,7 +616,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
618
616
|
readonly name?: string | undefined;
|
|
619
617
|
readonly negate?: boolean | undefined;
|
|
620
618
|
} & {
|
|
621
|
-
operator: "
|
|
619
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
622
620
|
pattern: string;
|
|
623
621
|
}>> | undefined;
|
|
624
622
|
} & {
|
|
@@ -628,7 +626,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
628
626
|
readonly name?: string | undefined;
|
|
629
627
|
readonly negate?: boolean | undefined;
|
|
630
628
|
} & {
|
|
631
|
-
operator: "
|
|
629
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
632
630
|
pattern: string;
|
|
633
631
|
}>> | undefined;
|
|
634
632
|
} & {
|
|
@@ -638,7 +636,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
638
636
|
readonly name?: string | undefined;
|
|
639
637
|
readonly negate?: boolean | undefined;
|
|
640
638
|
} & {
|
|
641
|
-
operator: "
|
|
639
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
642
640
|
pattern: string;
|
|
643
641
|
}>> | undefined;
|
|
644
642
|
} & {
|
|
@@ -648,7 +646,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
648
646
|
readonly name?: string | undefined;
|
|
649
647
|
readonly negate?: boolean | undefined;
|
|
650
648
|
} & {
|
|
651
|
-
operator: "
|
|
649
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
652
650
|
pattern: string;
|
|
653
651
|
}>> | undefined;
|
|
654
652
|
} & {
|
|
@@ -694,8 +692,8 @@ export declare const RulesetPicked: Readonly<{
|
|
|
694
692
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
695
693
|
readonly parameters?: Readonly<{
|
|
696
694
|
code_scanning_tools: readonly Readonly<{
|
|
697
|
-
alerts_threshold: "
|
|
698
|
-
security_alerts_threshold: "
|
|
695
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
696
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
699
697
|
tool: string;
|
|
700
698
|
}>[];
|
|
701
699
|
}> | undefined;
|
|
@@ -703,42 +701,52 @@ export declare const RulesetPicked: Readonly<{
|
|
|
703
701
|
type: "code_scanning";
|
|
704
702
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
705
703
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
706
|
-
review_on_push: boolean;
|
|
707
704
|
review_draft_pull_requests: boolean;
|
|
708
|
-
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
709
705
|
review_on_push: boolean;
|
|
706
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
710
707
|
review_draft_pull_requests: boolean;
|
|
711
|
-
|
|
708
|
+
review_on_push: boolean;
|
|
709
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
712
710
|
} & {
|
|
713
711
|
type: "copilot_code_review";
|
|
714
|
-
}>>
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
}
|
|
712
|
+
}>> | Readonly<{
|
|
713
|
+
type: "creation";
|
|
714
|
+
}> | Readonly<{
|
|
715
|
+
type: "deletion";
|
|
716
|
+
}> | Readonly<{
|
|
717
|
+
type: "required_linear_history";
|
|
718
|
+
}> | Readonly<{
|
|
719
|
+
type: "required_signatures";
|
|
720
|
+
}> | Readonly<{
|
|
721
|
+
type: "non_fast_forward";
|
|
722
|
+
}>)[] | undefined;
|
|
723
|
+
readonly created_at?: string | undefined;
|
|
724
|
+
readonly updated_at?: string | undefined;
|
|
725
725
|
} & {
|
|
726
|
-
|
|
726
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
727
727
|
id: number;
|
|
728
|
+
name: string;
|
|
728
729
|
source: string;
|
|
729
|
-
enforcement: "disabled" | "active" | "evaluate";
|
|
730
730
|
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
|
|
731
731
|
cast: (a: unknown) => Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
732
|
-
readonly
|
|
733
|
-
readonly
|
|
734
|
-
readonly updated_at?: string | undefined;
|
|
735
|
-
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
732
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
733
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
736
734
|
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
737
735
|
readonly actor_id?: number | null | undefined;
|
|
738
|
-
readonly bypass_mode?: "always" | "
|
|
736
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
739
737
|
} & {
|
|
740
|
-
actor_type: "
|
|
738
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
741
739
|
}>>[] | undefined;
|
|
740
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
741
|
+
readonly node_id?: string | undefined;
|
|
742
|
+
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
743
|
+
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
744
|
+
readonly href?: string | undefined;
|
|
745
|
+
}>> | undefined;
|
|
746
|
+
readonly html?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
747
|
+
readonly href?: string | undefined;
|
|
748
|
+
}>> | null | undefined;
|
|
749
|
+
}>> | undefined;
|
|
742
750
|
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
743
751
|
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
744
752
|
readonly include?: readonly string[] | undefined;
|
|
@@ -785,25 +793,19 @@ export declare const RulesetPicked: Readonly<{
|
|
|
785
793
|
}>>[] | undefined;
|
|
786
794
|
}>>;
|
|
787
795
|
}>> | null | undefined;
|
|
788
|
-
readonly rules?: readonly (Readonly<{
|
|
789
|
-
type: "creation";
|
|
790
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
796
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
791
797
|
readonly parameters?: Readonly<{
|
|
792
798
|
update_allows_fetch_and_merge: boolean;
|
|
793
799
|
}> | undefined;
|
|
794
800
|
} & {
|
|
795
801
|
type: "update";
|
|
796
|
-
}>> | Readonly<{
|
|
797
|
-
type: "deletion";
|
|
798
|
-
}> | Readonly<{
|
|
799
|
-
type: "required_linear_history";
|
|
800
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
802
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
801
803
|
readonly parameters?: Readonly<{
|
|
802
|
-
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
803
|
-
merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
804
804
|
check_response_timeout_minutes: number;
|
|
805
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
805
806
|
max_entries_to_build: number;
|
|
806
807
|
max_entries_to_merge: number;
|
|
808
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
807
809
|
min_entries_to_merge: number;
|
|
808
810
|
min_entries_to_merge_wait_minutes: number;
|
|
809
811
|
}> | undefined;
|
|
@@ -815,11 +817,9 @@ export declare const RulesetPicked: Readonly<{
|
|
|
815
817
|
}> | undefined;
|
|
816
818
|
} & {
|
|
817
819
|
type: "required_deployments";
|
|
818
|
-
}>> | Readonly<{
|
|
819
|
-
type: "required_signatures";
|
|
820
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
820
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
821
821
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
822
|
-
readonly allowed_merge_methods?: readonly ("merge" | "
|
|
822
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
823
823
|
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
824
824
|
} & {
|
|
825
825
|
dismiss_stale_reviews_on_push: boolean;
|
|
@@ -843,14 +843,12 @@ export declare const RulesetPicked: Readonly<{
|
|
|
843
843
|
}>> | undefined;
|
|
844
844
|
} & {
|
|
845
845
|
type: "required_status_checks";
|
|
846
|
-
}>> | Readonly<{
|
|
847
|
-
type: "non_fast_forward";
|
|
848
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
846
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
849
847
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
850
848
|
readonly name?: string | undefined;
|
|
851
849
|
readonly negate?: boolean | undefined;
|
|
852
850
|
} & {
|
|
853
|
-
operator: "
|
|
851
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
854
852
|
pattern: string;
|
|
855
853
|
}>> | undefined;
|
|
856
854
|
} & {
|
|
@@ -860,7 +858,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
860
858
|
readonly name?: string | undefined;
|
|
861
859
|
readonly negate?: boolean | undefined;
|
|
862
860
|
} & {
|
|
863
|
-
operator: "
|
|
861
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
864
862
|
pattern: string;
|
|
865
863
|
}>> | undefined;
|
|
866
864
|
} & {
|
|
@@ -870,7 +868,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
870
868
|
readonly name?: string | undefined;
|
|
871
869
|
readonly negate?: boolean | undefined;
|
|
872
870
|
} & {
|
|
873
|
-
operator: "
|
|
871
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
874
872
|
pattern: string;
|
|
875
873
|
}>> | undefined;
|
|
876
874
|
} & {
|
|
@@ -880,7 +878,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
880
878
|
readonly name?: string | undefined;
|
|
881
879
|
readonly negate?: boolean | undefined;
|
|
882
880
|
} & {
|
|
883
|
-
operator: "
|
|
881
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
884
882
|
pattern: string;
|
|
885
883
|
}>> | undefined;
|
|
886
884
|
} & {
|
|
@@ -890,7 +888,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
890
888
|
readonly name?: string | undefined;
|
|
891
889
|
readonly negate?: boolean | undefined;
|
|
892
890
|
} & {
|
|
893
|
-
operator: "
|
|
891
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
894
892
|
pattern: string;
|
|
895
893
|
}>> | undefined;
|
|
896
894
|
} & {
|
|
@@ -936,8 +934,8 @@ export declare const RulesetPicked: Readonly<{
|
|
|
936
934
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
937
935
|
readonly parameters?: Readonly<{
|
|
938
936
|
code_scanning_tools: readonly Readonly<{
|
|
939
|
-
alerts_threshold: "
|
|
940
|
-
security_alerts_threshold: "
|
|
937
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
938
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
941
939
|
tool: string;
|
|
942
940
|
}>[];
|
|
943
941
|
}> | undefined;
|
|
@@ -945,42 +943,52 @@ export declare const RulesetPicked: Readonly<{
|
|
|
945
943
|
type: "code_scanning";
|
|
946
944
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
947
945
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
948
|
-
review_on_push: boolean;
|
|
949
946
|
review_draft_pull_requests: boolean;
|
|
950
|
-
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
951
947
|
review_on_push: boolean;
|
|
948
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
952
949
|
review_draft_pull_requests: boolean;
|
|
953
|
-
|
|
950
|
+
review_on_push: boolean;
|
|
951
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
954
952
|
} & {
|
|
955
953
|
type: "copilot_code_review";
|
|
956
|
-
}>>
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
954
|
+
}>> | Readonly<{
|
|
955
|
+
type: "creation";
|
|
956
|
+
}> | Readonly<{
|
|
957
|
+
type: "deletion";
|
|
958
|
+
}> | Readonly<{
|
|
959
|
+
type: "required_linear_history";
|
|
960
|
+
}> | Readonly<{
|
|
961
|
+
type: "required_signatures";
|
|
962
|
+
}> | Readonly<{
|
|
963
|
+
type: "non_fast_forward";
|
|
964
|
+
}>)[] | undefined;
|
|
965
|
+
readonly created_at?: string | undefined;
|
|
966
|
+
readonly updated_at?: string | undefined;
|
|
967
967
|
} & {
|
|
968
|
-
|
|
968
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
969
969
|
id: number;
|
|
970
|
+
name: string;
|
|
970
971
|
source: string;
|
|
971
|
-
enforcement: "disabled" | "active" | "evaluate";
|
|
972
972
|
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
|
|
973
973
|
fill: (a: unknown) => Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
974
|
-
readonly
|
|
975
|
-
readonly
|
|
976
|
-
readonly updated_at?: string | undefined;
|
|
977
|
-
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
974
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
975
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
978
976
|
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
979
977
|
readonly actor_id?: number | null | undefined;
|
|
980
|
-
readonly bypass_mode?: "always" | "
|
|
978
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
981
979
|
} & {
|
|
982
|
-
actor_type: "
|
|
980
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
983
981
|
}>>[] | undefined;
|
|
982
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
983
|
+
readonly node_id?: string | undefined;
|
|
984
|
+
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
985
|
+
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
986
|
+
readonly href?: string | undefined;
|
|
987
|
+
}>> | undefined;
|
|
988
|
+
readonly html?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
989
|
+
readonly href?: string | undefined;
|
|
990
|
+
}>> | null | undefined;
|
|
991
|
+
}>> | undefined;
|
|
984
992
|
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
985
993
|
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
986
994
|
readonly include?: readonly string[] | undefined;
|
|
@@ -1027,25 +1035,19 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1027
1035
|
}>>[] | undefined;
|
|
1028
1036
|
}>>;
|
|
1029
1037
|
}>> | null | undefined;
|
|
1030
|
-
readonly rules?: readonly (Readonly<{
|
|
1031
|
-
type: "creation";
|
|
1032
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1038
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1033
1039
|
readonly parameters?: Readonly<{
|
|
1034
1040
|
update_allows_fetch_and_merge: boolean;
|
|
1035
1041
|
}> | undefined;
|
|
1036
1042
|
} & {
|
|
1037
1043
|
type: "update";
|
|
1038
|
-
}>> | Readonly<{
|
|
1039
|
-
type: "deletion";
|
|
1040
|
-
}> | Readonly<{
|
|
1041
|
-
type: "required_linear_history";
|
|
1042
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1044
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1043
1045
|
readonly parameters?: Readonly<{
|
|
1044
|
-
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
1045
|
-
merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
1046
1046
|
check_response_timeout_minutes: number;
|
|
1047
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
1047
1048
|
max_entries_to_build: number;
|
|
1048
1049
|
max_entries_to_merge: number;
|
|
1050
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
1049
1051
|
min_entries_to_merge: number;
|
|
1050
1052
|
min_entries_to_merge_wait_minutes: number;
|
|
1051
1053
|
}> | undefined;
|
|
@@ -1057,11 +1059,9 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1057
1059
|
}> | undefined;
|
|
1058
1060
|
} & {
|
|
1059
1061
|
type: "required_deployments";
|
|
1060
|
-
}>> | Readonly<{
|
|
1061
|
-
type: "required_signatures";
|
|
1062
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1062
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1063
1063
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1064
|
-
readonly allowed_merge_methods?: readonly ("merge" | "
|
|
1064
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
1065
1065
|
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
1066
1066
|
} & {
|
|
1067
1067
|
dismiss_stale_reviews_on_push: boolean;
|
|
@@ -1085,14 +1085,12 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1085
1085
|
}>> | undefined;
|
|
1086
1086
|
} & {
|
|
1087
1087
|
type: "required_status_checks";
|
|
1088
|
-
}>> | Readonly<{
|
|
1089
|
-
type: "non_fast_forward";
|
|
1090
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1088
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1091
1089
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1092
1090
|
readonly name?: string | undefined;
|
|
1093
1091
|
readonly negate?: boolean | undefined;
|
|
1094
1092
|
} & {
|
|
1095
|
-
operator: "
|
|
1093
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1096
1094
|
pattern: string;
|
|
1097
1095
|
}>> | undefined;
|
|
1098
1096
|
} & {
|
|
@@ -1102,7 +1100,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1102
1100
|
readonly name?: string | undefined;
|
|
1103
1101
|
readonly negate?: boolean | undefined;
|
|
1104
1102
|
} & {
|
|
1105
|
-
operator: "
|
|
1103
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1106
1104
|
pattern: string;
|
|
1107
1105
|
}>> | undefined;
|
|
1108
1106
|
} & {
|
|
@@ -1112,7 +1110,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1112
1110
|
readonly name?: string | undefined;
|
|
1113
1111
|
readonly negate?: boolean | undefined;
|
|
1114
1112
|
} & {
|
|
1115
|
-
operator: "
|
|
1113
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1116
1114
|
pattern: string;
|
|
1117
1115
|
}>> | undefined;
|
|
1118
1116
|
} & {
|
|
@@ -1122,7 +1120,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1122
1120
|
readonly name?: string | undefined;
|
|
1123
1121
|
readonly negate?: boolean | undefined;
|
|
1124
1122
|
} & {
|
|
1125
|
-
operator: "
|
|
1123
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1126
1124
|
pattern: string;
|
|
1127
1125
|
}>> | undefined;
|
|
1128
1126
|
} & {
|
|
@@ -1132,7 +1130,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1132
1130
|
readonly name?: string | undefined;
|
|
1133
1131
|
readonly negate?: boolean | undefined;
|
|
1134
1132
|
} & {
|
|
1135
|
-
operator: "
|
|
1133
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1136
1134
|
pattern: string;
|
|
1137
1135
|
}>> | undefined;
|
|
1138
1136
|
} & {
|
|
@@ -1178,8 +1176,8 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1178
1176
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1179
1177
|
readonly parameters?: Readonly<{
|
|
1180
1178
|
code_scanning_tools: readonly Readonly<{
|
|
1181
|
-
alerts_threshold: "
|
|
1182
|
-
security_alerts_threshold: "
|
|
1179
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
1180
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
1183
1181
|
tool: string;
|
|
1184
1182
|
}>[];
|
|
1185
1183
|
}> | undefined;
|
|
@@ -1187,44 +1185,54 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1187
1185
|
type: "code_scanning";
|
|
1188
1186
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1189
1187
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
1190
|
-
review_on_push: boolean;
|
|
1191
1188
|
review_draft_pull_requests: boolean;
|
|
1192
|
-
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
1193
1189
|
review_on_push: boolean;
|
|
1190
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
1194
1191
|
review_draft_pull_requests: boolean;
|
|
1195
|
-
|
|
1192
|
+
review_on_push: boolean;
|
|
1193
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
1196
1194
|
} & {
|
|
1197
1195
|
type: "copilot_code_review";
|
|
1198
|
-
}>>
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
}
|
|
1196
|
+
}>> | Readonly<{
|
|
1197
|
+
type: "creation";
|
|
1198
|
+
}> | Readonly<{
|
|
1199
|
+
type: "deletion";
|
|
1200
|
+
}> | Readonly<{
|
|
1201
|
+
type: "required_linear_history";
|
|
1202
|
+
}> | Readonly<{
|
|
1203
|
+
type: "required_signatures";
|
|
1204
|
+
}> | Readonly<{
|
|
1205
|
+
type: "non_fast_forward";
|
|
1206
|
+
}>)[] | undefined;
|
|
1207
|
+
readonly created_at?: string | undefined;
|
|
1208
|
+
readonly updated_at?: string | undefined;
|
|
1209
1209
|
} & {
|
|
1210
|
-
|
|
1210
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
1211
1211
|
id: number;
|
|
1212
|
+
name: string;
|
|
1212
1213
|
source: string;
|
|
1213
|
-
enforcement: "disabled" | "active" | "evaluate";
|
|
1214
1214
|
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
|
|
1215
|
-
|
|
1216
|
-
readonly
|
|
1217
|
-
readonly
|
|
1218
|
-
readonly updated_at?: string | undefined;
|
|
1219
|
-
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
1215
|
+
prune: <B extends Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1216
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
1217
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
1220
1218
|
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1221
1219
|
readonly actor_id?: number | null | undefined;
|
|
1222
|
-
readonly bypass_mode?: "always" | "
|
|
1220
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
1223
1221
|
} & {
|
|
1224
|
-
actor_type: "
|
|
1222
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
1225
1223
|
}>>[] | undefined;
|
|
1226
|
-
readonly
|
|
1227
|
-
|
|
1224
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
1225
|
+
readonly node_id?: string | undefined;
|
|
1226
|
+
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1227
|
+
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1228
|
+
readonly href?: string | undefined;
|
|
1229
|
+
}>> | undefined;
|
|
1230
|
+
readonly html?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1231
|
+
readonly href?: string | undefined;
|
|
1232
|
+
}>> | null | undefined;
|
|
1233
|
+
}>> | undefined;
|
|
1234
|
+
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1235
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1228
1236
|
readonly include?: readonly string[] | undefined;
|
|
1229
1237
|
readonly exclude?: readonly string[] | undefined;
|
|
1230
1238
|
}>> | undefined;
|
|
@@ -1269,25 +1277,260 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1269
1277
|
}>>[] | undefined;
|
|
1270
1278
|
}>>;
|
|
1271
1279
|
}>> | null | undefined;
|
|
1272
|
-
readonly rules?: readonly (Readonly<{
|
|
1273
|
-
type: "creation";
|
|
1274
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1280
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1275
1281
|
readonly parameters?: Readonly<{
|
|
1276
1282
|
update_allows_fetch_and_merge: boolean;
|
|
1277
1283
|
}> | undefined;
|
|
1278
1284
|
} & {
|
|
1279
1285
|
type: "update";
|
|
1286
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1287
|
+
readonly parameters?: Readonly<{
|
|
1288
|
+
check_response_timeout_minutes: number;
|
|
1289
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
1290
|
+
max_entries_to_build: number;
|
|
1291
|
+
max_entries_to_merge: number;
|
|
1292
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
1293
|
+
min_entries_to_merge: number;
|
|
1294
|
+
min_entries_to_merge_wait_minutes: number;
|
|
1295
|
+
}> | undefined;
|
|
1296
|
+
} & {
|
|
1297
|
+
type: "merge_queue";
|
|
1298
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1299
|
+
readonly parameters?: Readonly<{
|
|
1300
|
+
required_deployment_environments: readonly string[];
|
|
1301
|
+
}> | undefined;
|
|
1302
|
+
} & {
|
|
1303
|
+
type: "required_deployments";
|
|
1304
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1305
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1306
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
1307
|
+
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
1308
|
+
} & {
|
|
1309
|
+
dismiss_stale_reviews_on_push: boolean;
|
|
1310
|
+
require_code_owner_review: boolean;
|
|
1311
|
+
require_last_push_approval: boolean;
|
|
1312
|
+
required_approving_review_count: number;
|
|
1313
|
+
required_review_thread_resolution: boolean;
|
|
1314
|
+
}>> | undefined;
|
|
1315
|
+
} & {
|
|
1316
|
+
type: "pull_request";
|
|
1317
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1318
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1319
|
+
readonly do_not_enforce_on_create?: boolean | undefined;
|
|
1320
|
+
} & {
|
|
1321
|
+
required_status_checks: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1322
|
+
readonly integration_id?: number | undefined;
|
|
1323
|
+
} & {
|
|
1324
|
+
context: string;
|
|
1325
|
+
}>>[];
|
|
1326
|
+
strict_required_status_checks_policy: boolean;
|
|
1327
|
+
}>> | undefined;
|
|
1328
|
+
} & {
|
|
1329
|
+
type: "required_status_checks";
|
|
1330
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1331
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1332
|
+
readonly name?: string | undefined;
|
|
1333
|
+
readonly negate?: boolean | undefined;
|
|
1334
|
+
} & {
|
|
1335
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1336
|
+
pattern: string;
|
|
1337
|
+
}>> | undefined;
|
|
1338
|
+
} & {
|
|
1339
|
+
type: "commit_message_pattern";
|
|
1340
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1341
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1342
|
+
readonly name?: string | undefined;
|
|
1343
|
+
readonly negate?: boolean | undefined;
|
|
1344
|
+
} & {
|
|
1345
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1346
|
+
pattern: string;
|
|
1347
|
+
}>> | undefined;
|
|
1348
|
+
} & {
|
|
1349
|
+
type: "commit_author_email_pattern";
|
|
1350
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1351
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1352
|
+
readonly name?: string | undefined;
|
|
1353
|
+
readonly negate?: boolean | undefined;
|
|
1354
|
+
} & {
|
|
1355
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1356
|
+
pattern: string;
|
|
1357
|
+
}>> | undefined;
|
|
1358
|
+
} & {
|
|
1359
|
+
type: "committer_email_pattern";
|
|
1360
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1361
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1362
|
+
readonly name?: string | undefined;
|
|
1363
|
+
readonly negate?: boolean | undefined;
|
|
1364
|
+
} & {
|
|
1365
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1366
|
+
pattern: string;
|
|
1367
|
+
}>> | undefined;
|
|
1368
|
+
} & {
|
|
1369
|
+
type: "branch_name_pattern";
|
|
1370
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1371
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1372
|
+
readonly name?: string | undefined;
|
|
1373
|
+
readonly negate?: boolean | undefined;
|
|
1374
|
+
} & {
|
|
1375
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1376
|
+
pattern: string;
|
|
1377
|
+
}>> | undefined;
|
|
1378
|
+
} & {
|
|
1379
|
+
type: "tag_name_pattern";
|
|
1380
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1381
|
+
readonly parameters?: Readonly<{
|
|
1382
|
+
restricted_file_paths: readonly string[];
|
|
1383
|
+
}> | undefined;
|
|
1384
|
+
} & {
|
|
1385
|
+
type: "file_path_restriction";
|
|
1386
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1387
|
+
readonly parameters?: Readonly<{
|
|
1388
|
+
max_file_path_length: number;
|
|
1389
|
+
}> | undefined;
|
|
1390
|
+
} & {
|
|
1391
|
+
type: "max_file_path_length";
|
|
1392
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1393
|
+
readonly parameters?: Readonly<{
|
|
1394
|
+
restricted_file_extensions: readonly string[];
|
|
1395
|
+
}> | undefined;
|
|
1396
|
+
} & {
|
|
1397
|
+
type: "file_extension_restriction";
|
|
1398
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1399
|
+
readonly parameters?: Readonly<{
|
|
1400
|
+
max_file_size: number;
|
|
1401
|
+
}> | undefined;
|
|
1402
|
+
} & {
|
|
1403
|
+
type: "max_file_size";
|
|
1404
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1405
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1406
|
+
readonly do_not_enforce_on_create?: boolean | undefined;
|
|
1407
|
+
} & {
|
|
1408
|
+
workflows: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1409
|
+
readonly ref?: string | undefined;
|
|
1410
|
+
readonly sha?: string | undefined;
|
|
1411
|
+
} & {
|
|
1412
|
+
path: string;
|
|
1413
|
+
repository_id: number;
|
|
1414
|
+
}>>[];
|
|
1415
|
+
}>> | undefined;
|
|
1416
|
+
} & {
|
|
1417
|
+
type: "workflows";
|
|
1418
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1419
|
+
readonly parameters?: Readonly<{
|
|
1420
|
+
code_scanning_tools: readonly Readonly<{
|
|
1421
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
1422
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
1423
|
+
tool: string;
|
|
1424
|
+
}>[];
|
|
1425
|
+
}> | undefined;
|
|
1426
|
+
} & {
|
|
1427
|
+
type: "code_scanning";
|
|
1428
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1429
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
1430
|
+
review_draft_pull_requests: boolean;
|
|
1431
|
+
review_on_push: boolean;
|
|
1432
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
1433
|
+
review_draft_pull_requests: boolean;
|
|
1434
|
+
review_on_push: boolean;
|
|
1435
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
1436
|
+
} & {
|
|
1437
|
+
type: "copilot_code_review";
|
|
1280
1438
|
}>> | Readonly<{
|
|
1439
|
+
type: "creation";
|
|
1440
|
+
}> | Readonly<{
|
|
1281
1441
|
type: "deletion";
|
|
1282
1442
|
}> | Readonly<{
|
|
1283
1443
|
type: "required_linear_history";
|
|
1284
|
-
}> |
|
|
1444
|
+
}> | Readonly<{
|
|
1445
|
+
type: "required_signatures";
|
|
1446
|
+
}> | Readonly<{
|
|
1447
|
+
type: "non_fast_forward";
|
|
1448
|
+
}>)[] | undefined;
|
|
1449
|
+
readonly created_at?: string | undefined;
|
|
1450
|
+
readonly updated_at?: string | undefined;
|
|
1451
|
+
} & {
|
|
1452
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
1453
|
+
id: number;
|
|
1454
|
+
name: string;
|
|
1455
|
+
source: string;
|
|
1456
|
+
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>>(a: B) => Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1457
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
1458
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
1459
|
+
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1460
|
+
readonly actor_id?: number | null | undefined;
|
|
1461
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
1462
|
+
} & {
|
|
1463
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
1464
|
+
}>>[] | undefined;
|
|
1465
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
1466
|
+
readonly node_id?: string | undefined;
|
|
1467
|
+
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1468
|
+
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1469
|
+
readonly href?: string | undefined;
|
|
1470
|
+
}>> | undefined;
|
|
1471
|
+
readonly html?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1472
|
+
readonly href?: string | undefined;
|
|
1473
|
+
}>> | null | undefined;
|
|
1474
|
+
}>> | undefined;
|
|
1475
|
+
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1476
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1477
|
+
readonly include?: readonly string[] | undefined;
|
|
1478
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1479
|
+
}>> | undefined;
|
|
1480
|
+
}>> | import("ts-type-forge").MergeIntersection<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1481
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1482
|
+
readonly include?: readonly string[] | undefined;
|
|
1483
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1484
|
+
}>> | undefined;
|
|
1485
|
+
}>> & Readonly<{
|
|
1486
|
+
repository_name: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1487
|
+
readonly include?: readonly string[] | undefined;
|
|
1488
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1489
|
+
readonly protected?: boolean | undefined;
|
|
1490
|
+
}>>;
|
|
1491
|
+
}>> | import("ts-type-forge").MergeIntersection<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1492
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1493
|
+
readonly include?: readonly string[] | undefined;
|
|
1494
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1495
|
+
}>> | undefined;
|
|
1496
|
+
}>> & Readonly<{
|
|
1497
|
+
repository_id: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1498
|
+
readonly repository_ids?: readonly number[] | undefined;
|
|
1499
|
+
}>>;
|
|
1500
|
+
}>> | import("ts-type-forge").MergeIntersection<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1501
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1502
|
+
readonly include?: readonly string[] | undefined;
|
|
1503
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1504
|
+
}>> | undefined;
|
|
1505
|
+
}>> & Readonly<{
|
|
1506
|
+
repository_property: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1507
|
+
readonly include?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1508
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1509
|
+
} & {
|
|
1510
|
+
name: string;
|
|
1511
|
+
property_values: readonly string[];
|
|
1512
|
+
}>>[] | undefined;
|
|
1513
|
+
readonly exclude?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1514
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1515
|
+
} & {
|
|
1516
|
+
name: string;
|
|
1517
|
+
property_values: readonly string[];
|
|
1518
|
+
}>>[] | undefined;
|
|
1519
|
+
}>>;
|
|
1520
|
+
}>> | null | undefined;
|
|
1521
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1522
|
+
readonly parameters?: Readonly<{
|
|
1523
|
+
update_allows_fetch_and_merge: boolean;
|
|
1524
|
+
}> | undefined;
|
|
1525
|
+
} & {
|
|
1526
|
+
type: "update";
|
|
1527
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1285
1528
|
readonly parameters?: Readonly<{
|
|
1286
|
-
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
1287
|
-
merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
1288
1529
|
check_response_timeout_minutes: number;
|
|
1530
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
1289
1531
|
max_entries_to_build: number;
|
|
1290
1532
|
max_entries_to_merge: number;
|
|
1533
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
1291
1534
|
min_entries_to_merge: number;
|
|
1292
1535
|
min_entries_to_merge_wait_minutes: number;
|
|
1293
1536
|
}> | undefined;
|
|
@@ -1299,11 +1542,9 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1299
1542
|
}> | undefined;
|
|
1300
1543
|
} & {
|
|
1301
1544
|
type: "required_deployments";
|
|
1302
|
-
}>> | Readonly<{
|
|
1303
|
-
type: "required_signatures";
|
|
1304
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1545
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1305
1546
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1306
|
-
readonly allowed_merge_methods?: readonly ("merge" | "
|
|
1547
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
1307
1548
|
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
1308
1549
|
} & {
|
|
1309
1550
|
dismiss_stale_reviews_on_push: boolean;
|
|
@@ -1327,14 +1568,12 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1327
1568
|
}>> | undefined;
|
|
1328
1569
|
} & {
|
|
1329
1570
|
type: "required_status_checks";
|
|
1330
|
-
}>> | Readonly<{
|
|
1331
|
-
type: "non_fast_forward";
|
|
1332
|
-
}> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1571
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1333
1572
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1334
1573
|
readonly name?: string | undefined;
|
|
1335
1574
|
readonly negate?: boolean | undefined;
|
|
1336
1575
|
} & {
|
|
1337
|
-
operator: "
|
|
1576
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1338
1577
|
pattern: string;
|
|
1339
1578
|
}>> | undefined;
|
|
1340
1579
|
} & {
|
|
@@ -1344,7 +1583,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1344
1583
|
readonly name?: string | undefined;
|
|
1345
1584
|
readonly negate?: boolean | undefined;
|
|
1346
1585
|
} & {
|
|
1347
|
-
operator: "
|
|
1586
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1348
1587
|
pattern: string;
|
|
1349
1588
|
}>> | undefined;
|
|
1350
1589
|
} & {
|
|
@@ -1354,7 +1593,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1354
1593
|
readonly name?: string | undefined;
|
|
1355
1594
|
readonly negate?: boolean | undefined;
|
|
1356
1595
|
} & {
|
|
1357
|
-
operator: "
|
|
1596
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1358
1597
|
pattern: string;
|
|
1359
1598
|
}>> | undefined;
|
|
1360
1599
|
} & {
|
|
@@ -1364,7 +1603,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1364
1603
|
readonly name?: string | undefined;
|
|
1365
1604
|
readonly negate?: boolean | undefined;
|
|
1366
1605
|
} & {
|
|
1367
|
-
operator: "
|
|
1606
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1368
1607
|
pattern: string;
|
|
1369
1608
|
}>> | undefined;
|
|
1370
1609
|
} & {
|
|
@@ -1374,7 +1613,7 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1374
1613
|
readonly name?: string | undefined;
|
|
1375
1614
|
readonly negate?: boolean | undefined;
|
|
1376
1615
|
} & {
|
|
1377
|
-
operator: "
|
|
1616
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1378
1617
|
pattern: string;
|
|
1379
1618
|
}>> | undefined;
|
|
1380
1619
|
} & {
|
|
@@ -1420,8 +1659,8 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1420
1659
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1421
1660
|
readonly parameters?: Readonly<{
|
|
1422
1661
|
code_scanning_tools: readonly Readonly<{
|
|
1423
|
-
alerts_threshold: "
|
|
1424
|
-
security_alerts_threshold: "
|
|
1662
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
1663
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
1425
1664
|
tool: string;
|
|
1426
1665
|
}>[];
|
|
1427
1666
|
}> | undefined;
|
|
@@ -1429,17 +1668,44 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1429
1668
|
type: "code_scanning";
|
|
1430
1669
|
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1431
1670
|
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
1432
|
-
review_on_push: boolean;
|
|
1433
1671
|
review_draft_pull_requests: boolean;
|
|
1434
|
-
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
1435
1672
|
review_on_push: boolean;
|
|
1673
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
1436
1674
|
review_draft_pull_requests: boolean;
|
|
1437
|
-
|
|
1675
|
+
review_on_push: boolean;
|
|
1676
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
1438
1677
|
} & {
|
|
1439
1678
|
type: "copilot_code_review";
|
|
1440
|
-
}>>
|
|
1441
|
-
|
|
1442
|
-
|
|
1679
|
+
}>> | Readonly<{
|
|
1680
|
+
type: "creation";
|
|
1681
|
+
}> | Readonly<{
|
|
1682
|
+
type: "deletion";
|
|
1683
|
+
}> | Readonly<{
|
|
1684
|
+
type: "required_linear_history";
|
|
1685
|
+
}> | Readonly<{
|
|
1686
|
+
type: "required_signatures";
|
|
1687
|
+
}> | Readonly<{
|
|
1688
|
+
type: "non_fast_forward";
|
|
1689
|
+
}>)[] | undefined;
|
|
1690
|
+
readonly created_at?: string | undefined;
|
|
1691
|
+
readonly updated_at?: string | undefined;
|
|
1692
|
+
} & {
|
|
1693
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
1694
|
+
id: number;
|
|
1695
|
+
name: string;
|
|
1696
|
+
source: string;
|
|
1697
|
+
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
|
|
1698
|
+
validate: (a: unknown) => t.Result<Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1699
|
+
readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
|
|
1700
|
+
readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
|
|
1701
|
+
readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1702
|
+
readonly actor_id?: number | null | undefined;
|
|
1703
|
+
readonly bypass_mode?: "always" | "exempt" | "pull_request" | undefined;
|
|
1704
|
+
} & {
|
|
1705
|
+
actor_type: "DeployKey" | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team";
|
|
1706
|
+
}>>[] | undefined;
|
|
1707
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "never" | "pull_requests_only" | undefined;
|
|
1708
|
+
readonly node_id?: string | undefined;
|
|
1443
1709
|
readonly _links?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1444
1710
|
readonly self?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1445
1711
|
readonly href?: string | undefined;
|
|
@@ -1448,11 +1714,228 @@ export declare const RulesetPicked: Readonly<{
|
|
|
1448
1714
|
readonly href?: string | undefined;
|
|
1449
1715
|
}>> | null | undefined;
|
|
1450
1716
|
}>> | undefined;
|
|
1717
|
+
readonly conditions?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1718
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1719
|
+
readonly include?: readonly string[] | undefined;
|
|
1720
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1721
|
+
}>> | undefined;
|
|
1722
|
+
}>> | import("ts-type-forge").MergeIntersection<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1723
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1724
|
+
readonly include?: readonly string[] | undefined;
|
|
1725
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1726
|
+
}>> | undefined;
|
|
1727
|
+
}>> & Readonly<{
|
|
1728
|
+
repository_name: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1729
|
+
readonly include?: readonly string[] | undefined;
|
|
1730
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1731
|
+
readonly protected?: boolean | undefined;
|
|
1732
|
+
}>>;
|
|
1733
|
+
}>> | import("ts-type-forge").MergeIntersection<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1734
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1735
|
+
readonly include?: readonly string[] | undefined;
|
|
1736
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1737
|
+
}>> | undefined;
|
|
1738
|
+
}>> & Readonly<{
|
|
1739
|
+
repository_id: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1740
|
+
readonly repository_ids?: readonly number[] | undefined;
|
|
1741
|
+
}>>;
|
|
1742
|
+
}>> | import("ts-type-forge").MergeIntersection<import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1743
|
+
readonly ref_name?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1744
|
+
readonly include?: readonly string[] | undefined;
|
|
1745
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1746
|
+
}>> | undefined;
|
|
1747
|
+
}>> & Readonly<{
|
|
1748
|
+
repository_property: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1749
|
+
readonly include?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1750
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1751
|
+
} & {
|
|
1752
|
+
name: string;
|
|
1753
|
+
property_values: readonly string[];
|
|
1754
|
+
}>>[] | undefined;
|
|
1755
|
+
readonly exclude?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1756
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1757
|
+
} & {
|
|
1758
|
+
name: string;
|
|
1759
|
+
property_values: readonly string[];
|
|
1760
|
+
}>>[] | undefined;
|
|
1761
|
+
}>>;
|
|
1762
|
+
}>> | null | undefined;
|
|
1763
|
+
readonly rules?: readonly (import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1764
|
+
readonly parameters?: Readonly<{
|
|
1765
|
+
update_allows_fetch_and_merge: boolean;
|
|
1766
|
+
}> | undefined;
|
|
1767
|
+
} & {
|
|
1768
|
+
type: "update";
|
|
1769
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1770
|
+
readonly parameters?: Readonly<{
|
|
1771
|
+
check_response_timeout_minutes: number;
|
|
1772
|
+
grouping_strategy: "ALLGREEN" | "HEADGREEN";
|
|
1773
|
+
max_entries_to_build: number;
|
|
1774
|
+
max_entries_to_merge: number;
|
|
1775
|
+
merge_method: "MERGE" | "REBASE" | "SQUASH";
|
|
1776
|
+
min_entries_to_merge: number;
|
|
1777
|
+
min_entries_to_merge_wait_minutes: number;
|
|
1778
|
+
}> | undefined;
|
|
1779
|
+
} & {
|
|
1780
|
+
type: "merge_queue";
|
|
1781
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1782
|
+
readonly parameters?: Readonly<{
|
|
1783
|
+
required_deployment_environments: readonly string[];
|
|
1784
|
+
}> | undefined;
|
|
1785
|
+
} & {
|
|
1786
|
+
type: "required_deployments";
|
|
1787
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1788
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1789
|
+
readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
|
|
1790
|
+
readonly automatic_copilot_code_review_enabled?: boolean | undefined;
|
|
1791
|
+
} & {
|
|
1792
|
+
dismiss_stale_reviews_on_push: boolean;
|
|
1793
|
+
require_code_owner_review: boolean;
|
|
1794
|
+
require_last_push_approval: boolean;
|
|
1795
|
+
required_approving_review_count: number;
|
|
1796
|
+
required_review_thread_resolution: boolean;
|
|
1797
|
+
}>> | undefined;
|
|
1798
|
+
} & {
|
|
1799
|
+
type: "pull_request";
|
|
1800
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1801
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1802
|
+
readonly do_not_enforce_on_create?: boolean | undefined;
|
|
1803
|
+
} & {
|
|
1804
|
+
required_status_checks: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1805
|
+
readonly integration_id?: number | undefined;
|
|
1806
|
+
} & {
|
|
1807
|
+
context: string;
|
|
1808
|
+
}>>[];
|
|
1809
|
+
strict_required_status_checks_policy: boolean;
|
|
1810
|
+
}>> | undefined;
|
|
1811
|
+
} & {
|
|
1812
|
+
type: "required_status_checks";
|
|
1813
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1814
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1815
|
+
readonly name?: string | undefined;
|
|
1816
|
+
readonly negate?: boolean | undefined;
|
|
1817
|
+
} & {
|
|
1818
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1819
|
+
pattern: string;
|
|
1820
|
+
}>> | undefined;
|
|
1821
|
+
} & {
|
|
1822
|
+
type: "commit_message_pattern";
|
|
1823
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1824
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1825
|
+
readonly name?: string | undefined;
|
|
1826
|
+
readonly negate?: boolean | undefined;
|
|
1827
|
+
} & {
|
|
1828
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1829
|
+
pattern: string;
|
|
1830
|
+
}>> | undefined;
|
|
1831
|
+
} & {
|
|
1832
|
+
type: "commit_author_email_pattern";
|
|
1833
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1834
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1835
|
+
readonly name?: string | undefined;
|
|
1836
|
+
readonly negate?: boolean | undefined;
|
|
1837
|
+
} & {
|
|
1838
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1839
|
+
pattern: string;
|
|
1840
|
+
}>> | undefined;
|
|
1841
|
+
} & {
|
|
1842
|
+
type: "committer_email_pattern";
|
|
1843
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1844
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1845
|
+
readonly name?: string | undefined;
|
|
1846
|
+
readonly negate?: boolean | undefined;
|
|
1847
|
+
} & {
|
|
1848
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1849
|
+
pattern: string;
|
|
1850
|
+
}>> | undefined;
|
|
1851
|
+
} & {
|
|
1852
|
+
type: "branch_name_pattern";
|
|
1853
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1854
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1855
|
+
readonly name?: string | undefined;
|
|
1856
|
+
readonly negate?: boolean | undefined;
|
|
1857
|
+
} & {
|
|
1858
|
+
operator: "contains" | "ends_with" | "regex" | "starts_with";
|
|
1859
|
+
pattern: string;
|
|
1860
|
+
}>> | undefined;
|
|
1861
|
+
} & {
|
|
1862
|
+
type: "tag_name_pattern";
|
|
1863
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1864
|
+
readonly parameters?: Readonly<{
|
|
1865
|
+
restricted_file_paths: readonly string[];
|
|
1866
|
+
}> | undefined;
|
|
1867
|
+
} & {
|
|
1868
|
+
type: "file_path_restriction";
|
|
1869
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1870
|
+
readonly parameters?: Readonly<{
|
|
1871
|
+
max_file_path_length: number;
|
|
1872
|
+
}> | undefined;
|
|
1873
|
+
} & {
|
|
1874
|
+
type: "max_file_path_length";
|
|
1875
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1876
|
+
readonly parameters?: Readonly<{
|
|
1877
|
+
restricted_file_extensions: readonly string[];
|
|
1878
|
+
}> | undefined;
|
|
1879
|
+
} & {
|
|
1880
|
+
type: "file_extension_restriction";
|
|
1881
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1882
|
+
readonly parameters?: Readonly<{
|
|
1883
|
+
max_file_size: number;
|
|
1884
|
+
}> | undefined;
|
|
1885
|
+
} & {
|
|
1886
|
+
type: "max_file_size";
|
|
1887
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1888
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1889
|
+
readonly do_not_enforce_on_create?: boolean | undefined;
|
|
1890
|
+
} & {
|
|
1891
|
+
workflows: readonly import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1892
|
+
readonly ref?: string | undefined;
|
|
1893
|
+
readonly sha?: string | undefined;
|
|
1894
|
+
} & {
|
|
1895
|
+
path: string;
|
|
1896
|
+
repository_id: number;
|
|
1897
|
+
}>>[];
|
|
1898
|
+
}>> | undefined;
|
|
1899
|
+
} & {
|
|
1900
|
+
type: "workflows";
|
|
1901
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1902
|
+
readonly parameters?: Readonly<{
|
|
1903
|
+
code_scanning_tools: readonly Readonly<{
|
|
1904
|
+
alerts_threshold: "all" | "errors" | "errors_and_warnings" | "none";
|
|
1905
|
+
security_alerts_threshold: "all" | "critical" | "high_or_higher" | "medium_or_higher" | "none";
|
|
1906
|
+
tool: string;
|
|
1907
|
+
}>[];
|
|
1908
|
+
}> | undefined;
|
|
1909
|
+
} & {
|
|
1910
|
+
type: "code_scanning";
|
|
1911
|
+
}>> | import("ts-type-forge").MergeIntersection<Readonly<{
|
|
1912
|
+
readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
|
|
1913
|
+
review_draft_pull_requests: boolean;
|
|
1914
|
+
review_on_push: boolean;
|
|
1915
|
+
}>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
|
|
1916
|
+
review_draft_pull_requests: boolean;
|
|
1917
|
+
review_on_push: boolean;
|
|
1918
|
+
}>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
|
|
1919
|
+
} & {
|
|
1920
|
+
type: "copilot_code_review";
|
|
1921
|
+
}>> | Readonly<{
|
|
1922
|
+
type: "creation";
|
|
1923
|
+
}> | Readonly<{
|
|
1924
|
+
type: "deletion";
|
|
1925
|
+
}> | Readonly<{
|
|
1926
|
+
type: "required_linear_history";
|
|
1927
|
+
}> | Readonly<{
|
|
1928
|
+
type: "required_signatures";
|
|
1929
|
+
}> | Readonly<{
|
|
1930
|
+
type: "non_fast_forward";
|
|
1931
|
+
}>)[] | undefined;
|
|
1932
|
+
readonly created_at?: string | undefined;
|
|
1933
|
+
readonly updated_at?: string | undefined;
|
|
1451
1934
|
} & {
|
|
1452
|
-
|
|
1935
|
+
enforcement: "active" | "disabled" | "evaluate";
|
|
1453
1936
|
id: number;
|
|
1937
|
+
name: string;
|
|
1454
1938
|
source: string;
|
|
1455
|
-
enforcement: "disabled" | "active" | "evaluate";
|
|
1456
1939
|
}>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>, readonly Readonly<{
|
|
1457
1940
|
path: readonly string[];
|
|
1458
1941
|
actualValue: unknown;
|