github-settings-as-code 1.2.0 → 1.2.2
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.
|
@@ -1,277 +1,19 @@
|
|
|
1
1
|
import * as t from 'ts-fortress';
|
|
2
2
|
export declare const rulesetKeysToPick: readonly ["id", "name", "target", "enforcement", "bypass_actors", "conditions", "rules"];
|
|
3
|
-
export declare const RulesetPicked:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
validate: (a: unknown) => Result<number, readonly Readonly<{
|
|
12
|
-
path: readonly string[];
|
|
13
|
-
actualValue: unknown;
|
|
14
|
-
expectedType: string;
|
|
15
|
-
typeName: string;
|
|
16
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
17
|
-
}>[]>;
|
|
18
|
-
optional?: true;
|
|
19
|
-
}>;
|
|
20
|
-
readonly name: Readonly<{
|
|
21
|
-
typeName: string;
|
|
22
|
-
defaultValue: string;
|
|
23
|
-
is: (a: unknown) => a is string;
|
|
24
|
-
assertIs: (a: unknown) => asserts a is string;
|
|
25
|
-
cast: (a: unknown) => string;
|
|
26
|
-
fill: (a: unknown) => string;
|
|
27
|
-
validate: (a: unknown) => Result<string, readonly Readonly<{
|
|
28
|
-
path: readonly string[];
|
|
29
|
-
actualValue: unknown;
|
|
30
|
-
expectedType: string;
|
|
31
|
-
typeName: string;
|
|
32
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
33
|
-
}>[]>;
|
|
34
|
-
optional?: true;
|
|
35
|
-
}>;
|
|
36
|
-
readonly target: t.OptionalPropertyType<Readonly<{
|
|
37
|
-
typeName: string;
|
|
38
|
-
defaultValue: "push" | "repository" | "branch" | "tag";
|
|
39
|
-
is: (a: unknown) => a is "push" | "repository" | "branch" | "tag";
|
|
40
|
-
assertIs: (a: unknown) => asserts a is "push" | "repository" | "branch" | "tag";
|
|
41
|
-
cast: (a: unknown) => "push" | "repository" | "branch" | "tag";
|
|
42
|
-
fill: (a: unknown) => "push" | "repository" | "branch" | "tag";
|
|
43
|
-
validate: (a: unknown) => Result<"push" | "repository" | "branch" | "tag", readonly Readonly<{
|
|
44
|
-
path: readonly string[];
|
|
45
|
-
actualValue: unknown;
|
|
46
|
-
expectedType: string;
|
|
47
|
-
typeName: string;
|
|
48
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
49
|
-
}>[]>;
|
|
50
|
-
optional?: true;
|
|
51
|
-
}>>;
|
|
52
|
-
readonly source_type: t.OptionalPropertyType<Readonly<{
|
|
53
|
-
typeName: string;
|
|
54
|
-
defaultValue: "Repository" | "Organization" | "Enterprise";
|
|
55
|
-
is: (a: unknown) => a is "Repository" | "Organization" | "Enterprise";
|
|
56
|
-
assertIs: (a: unknown) => asserts a is "Repository" | "Organization" | "Enterprise";
|
|
57
|
-
cast: (a: unknown) => "Repository" | "Organization" | "Enterprise";
|
|
58
|
-
fill: (a: unknown) => "Repository" | "Organization" | "Enterprise";
|
|
59
|
-
validate: (a: unknown) => Result<"Repository" | "Organization" | "Enterprise", readonly Readonly<{
|
|
60
|
-
path: readonly string[];
|
|
61
|
-
actualValue: unknown;
|
|
62
|
-
expectedType: string;
|
|
63
|
-
typeName: string;
|
|
64
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
65
|
-
}>[]>;
|
|
66
|
-
optional?: true;
|
|
67
|
-
}>>;
|
|
68
|
-
readonly source: Readonly<{
|
|
69
|
-
typeName: string;
|
|
70
|
-
defaultValue: string;
|
|
71
|
-
is: (a: unknown) => a is string;
|
|
72
|
-
assertIs: (a: unknown) => asserts a is string;
|
|
73
|
-
cast: (a: unknown) => string;
|
|
74
|
-
fill: (a: unknown) => string;
|
|
75
|
-
validate: (a: unknown) => Result<string, readonly Readonly<{
|
|
76
|
-
path: readonly string[];
|
|
77
|
-
actualValue: unknown;
|
|
78
|
-
expectedType: string;
|
|
79
|
-
typeName: string;
|
|
80
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
81
|
-
}>[]>;
|
|
82
|
-
optional?: true;
|
|
83
|
-
}>;
|
|
84
|
-
readonly enforcement: Readonly<{
|
|
85
|
-
typeName: string;
|
|
86
|
-
defaultValue: "disabled" | "active" | "evaluate";
|
|
87
|
-
is: (a: unknown) => a is "disabled" | "active" | "evaluate";
|
|
88
|
-
assertIs: (a: unknown) => asserts a is "disabled" | "active" | "evaluate";
|
|
89
|
-
cast: (a: unknown) => "disabled" | "active" | "evaluate";
|
|
90
|
-
fill: (a: unknown) => "disabled" | "active" | "evaluate";
|
|
91
|
-
validate: (a: unknown) => Result<"disabled" | "active" | "evaluate", readonly Readonly<{
|
|
92
|
-
path: readonly string[];
|
|
93
|
-
actualValue: unknown;
|
|
94
|
-
expectedType: string;
|
|
95
|
-
typeName: string;
|
|
96
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
97
|
-
}>[]>;
|
|
98
|
-
optional?: true;
|
|
99
|
-
}>;
|
|
100
|
-
readonly bypass_actors: t.OptionalPropertyType<Readonly<{
|
|
101
|
-
typeName: string;
|
|
102
|
-
defaultValue: readonly MergeIntersection<Readonly<{
|
|
103
|
-
readonly actor_id?: number | null | undefined;
|
|
104
|
-
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
105
|
-
} & {
|
|
106
|
-
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
107
|
-
}>>[];
|
|
108
|
-
is: (a: unknown) => a is readonly MergeIntersection<Readonly<{
|
|
3
|
+
export declare const RulesetPicked: Readonly<{
|
|
4
|
+
typeName: string;
|
|
5
|
+
defaultValue: Readonly<Pick<MergeIntersection<Readonly<{
|
|
6
|
+
readonly node_id?: string | undefined;
|
|
7
|
+
readonly created_at?: string | undefined;
|
|
8
|
+
readonly updated_at?: string | undefined;
|
|
9
|
+
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
10
|
+
readonly bypass_actors?: readonly MergeIntersection<Readonly<{
|
|
109
11
|
readonly actor_id?: number | null | undefined;
|
|
110
12
|
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
111
13
|
} & {
|
|
112
14
|
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
113
|
-
}>>[];
|
|
114
|
-
|
|
115
|
-
readonly actor_id?: number | null | undefined;
|
|
116
|
-
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
117
|
-
} & {
|
|
118
|
-
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
119
|
-
}>>[];
|
|
120
|
-
cast: (a: unknown) => readonly MergeIntersection<Readonly<{
|
|
121
|
-
readonly actor_id?: number | null | undefined;
|
|
122
|
-
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
123
|
-
} & {
|
|
124
|
-
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
125
|
-
}>>[];
|
|
126
|
-
fill: (a: unknown) => readonly MergeIntersection<Readonly<{
|
|
127
|
-
readonly actor_id?: number | null | undefined;
|
|
128
|
-
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
129
|
-
} & {
|
|
130
|
-
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
131
|
-
}>>[];
|
|
132
|
-
validate: (a: unknown) => Result<readonly MergeIntersection<Readonly<{
|
|
133
|
-
readonly actor_id?: number | null | undefined;
|
|
134
|
-
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
135
|
-
} & {
|
|
136
|
-
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
137
|
-
}>>[], readonly Readonly<{
|
|
138
|
-
path: readonly string[];
|
|
139
|
-
actualValue: unknown;
|
|
140
|
-
expectedType: string;
|
|
141
|
-
typeName: string;
|
|
142
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
143
|
-
}>[]>;
|
|
144
|
-
optional?: true;
|
|
145
|
-
}>>;
|
|
146
|
-
readonly current_user_can_bypass: t.OptionalPropertyType<Readonly<{
|
|
147
|
-
typeName: string;
|
|
148
|
-
defaultValue: "always" | "exempt" | "pull_requests_only" | "never";
|
|
149
|
-
is: (a: unknown) => a is "always" | "exempt" | "pull_requests_only" | "never";
|
|
150
|
-
assertIs: (a: unknown) => asserts a is "always" | "exempt" | "pull_requests_only" | "never";
|
|
151
|
-
cast: (a: unknown) => "always" | "exempt" | "pull_requests_only" | "never";
|
|
152
|
-
fill: (a: unknown) => "always" | "exempt" | "pull_requests_only" | "never";
|
|
153
|
-
validate: (a: unknown) => Result<"always" | "exempt" | "pull_requests_only" | "never", readonly Readonly<{
|
|
154
|
-
path: readonly string[];
|
|
155
|
-
actualValue: unknown;
|
|
156
|
-
expectedType: string;
|
|
157
|
-
typeName: string;
|
|
158
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
159
|
-
}>[]>;
|
|
160
|
-
optional?: true;
|
|
161
|
-
}>>;
|
|
162
|
-
readonly node_id: t.OptionalPropertyType<Readonly<{
|
|
163
|
-
typeName: string;
|
|
164
|
-
defaultValue: string;
|
|
165
|
-
is: (a: unknown) => a is string;
|
|
166
|
-
assertIs: (a: unknown) => asserts a is string;
|
|
167
|
-
cast: (a: unknown) => string;
|
|
168
|
-
fill: (a: unknown) => string;
|
|
169
|
-
validate: (a: unknown) => Result<string, readonly Readonly<{
|
|
170
|
-
path: readonly string[];
|
|
171
|
-
actualValue: unknown;
|
|
172
|
-
expectedType: string;
|
|
173
|
-
typeName: string;
|
|
174
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
175
|
-
}>[]>;
|
|
176
|
-
optional?: true;
|
|
177
|
-
}>>;
|
|
178
|
-
readonly _links: t.OptionalPropertyType<t.RecordType<{
|
|
179
|
-
readonly self: t.OptionalPropertyType<t.RecordType<{
|
|
180
|
-
readonly href: t.OptionalPropertyType<Readonly<{
|
|
181
|
-
typeName: string;
|
|
182
|
-
defaultValue: string;
|
|
183
|
-
is: (a: unknown) => a is string;
|
|
184
|
-
assertIs: (a: unknown) => asserts a is string;
|
|
185
|
-
cast: (a: unknown) => string;
|
|
186
|
-
fill: (a: unknown) => string;
|
|
187
|
-
validate: (a: unknown) => Result<string, readonly Readonly<{
|
|
188
|
-
path: readonly string[];
|
|
189
|
-
actualValue: unknown;
|
|
190
|
-
expectedType: string;
|
|
191
|
-
typeName: string;
|
|
192
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
193
|
-
}>[]>;
|
|
194
|
-
optional?: true;
|
|
195
|
-
}>>;
|
|
196
|
-
}, "strip">>;
|
|
197
|
-
readonly html: t.OptionalPropertyType<Readonly<{
|
|
198
|
-
typeName: string;
|
|
199
|
-
defaultValue: MergeIntersection<Readonly<{
|
|
200
|
-
readonly href?: string | undefined;
|
|
201
|
-
}>> | null;
|
|
202
|
-
is: (a: unknown) => a is MergeIntersection<Readonly<{
|
|
203
|
-
readonly href?: string | undefined;
|
|
204
|
-
}>> | null;
|
|
205
|
-
assertIs: (a: unknown) => asserts a is MergeIntersection<Readonly<{
|
|
206
|
-
readonly href?: string | undefined;
|
|
207
|
-
}>> | null;
|
|
208
|
-
cast: (a: unknown) => MergeIntersection<Readonly<{
|
|
209
|
-
readonly href?: string | undefined;
|
|
210
|
-
}>> | null;
|
|
211
|
-
fill: (a: unknown) => MergeIntersection<Readonly<{
|
|
212
|
-
readonly href?: string | undefined;
|
|
213
|
-
}>> | null;
|
|
214
|
-
validate: (a: unknown) => Result<MergeIntersection<Readonly<{
|
|
215
|
-
readonly href?: string | undefined;
|
|
216
|
-
}>> | null, readonly Readonly<{
|
|
217
|
-
path: readonly string[];
|
|
218
|
-
actualValue: unknown;
|
|
219
|
-
expectedType: string;
|
|
220
|
-
typeName: string;
|
|
221
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
222
|
-
}>[]>;
|
|
223
|
-
optional?: true;
|
|
224
|
-
}>>;
|
|
225
|
-
}, "strip">>;
|
|
226
|
-
readonly conditions: t.OptionalPropertyType<Readonly<{
|
|
227
|
-
typeName: string;
|
|
228
|
-
defaultValue: MergeIntersection<Readonly<{
|
|
229
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
230
|
-
readonly include?: readonly string[] | undefined;
|
|
231
|
-
readonly exclude?: readonly string[] | undefined;
|
|
232
|
-
}>> | undefined;
|
|
233
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
234
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
235
|
-
readonly include?: readonly string[] | undefined;
|
|
236
|
-
readonly exclude?: readonly string[] | undefined;
|
|
237
|
-
}>> | undefined;
|
|
238
|
-
}>> & Readonly<{
|
|
239
|
-
repository_name: MergeIntersection<Readonly<{
|
|
240
|
-
readonly include?: readonly string[] | undefined;
|
|
241
|
-
readonly exclude?: readonly string[] | undefined;
|
|
242
|
-
readonly protected?: boolean | undefined;
|
|
243
|
-
}>>;
|
|
244
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
245
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
246
|
-
readonly include?: readonly string[] | undefined;
|
|
247
|
-
readonly exclude?: readonly string[] | undefined;
|
|
248
|
-
}>> | undefined;
|
|
249
|
-
}>> & Readonly<{
|
|
250
|
-
repository_id: MergeIntersection<Readonly<{
|
|
251
|
-
readonly repository_ids?: readonly number[] | undefined;
|
|
252
|
-
}>>;
|
|
253
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
254
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
255
|
-
readonly include?: readonly string[] | undefined;
|
|
256
|
-
readonly exclude?: readonly string[] | undefined;
|
|
257
|
-
}>> | undefined;
|
|
258
|
-
}>> & Readonly<{
|
|
259
|
-
repository_property: MergeIntersection<Readonly<{
|
|
260
|
-
readonly include?: readonly MergeIntersection<Readonly<{
|
|
261
|
-
readonly source?: "custom" | "system" | undefined;
|
|
262
|
-
} & {
|
|
263
|
-
name: string;
|
|
264
|
-
property_values: readonly string[];
|
|
265
|
-
}>>[] | undefined;
|
|
266
|
-
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
267
|
-
readonly source?: "custom" | "system" | undefined;
|
|
268
|
-
} & {
|
|
269
|
-
name: string;
|
|
270
|
-
property_values: readonly string[];
|
|
271
|
-
}>>[] | undefined;
|
|
272
|
-
}>>;
|
|
273
|
-
}>> | null;
|
|
274
|
-
is: (a: unknown) => a is MergeIntersection<Readonly<{
|
|
15
|
+
}>>[] | undefined;
|
|
16
|
+
readonly conditions?: MergeIntersection<Readonly<{
|
|
275
17
|
readonly ref_name?: MergeIntersection<Readonly<{
|
|
276
18
|
readonly include?: readonly string[] | undefined;
|
|
277
19
|
readonly exclude?: readonly string[] | undefined;
|
|
@@ -316,202 +58,8 @@ export declare const RulesetPicked: t.PickedType<{
|
|
|
316
58
|
property_values: readonly string[];
|
|
317
59
|
}>>[] | undefined;
|
|
318
60
|
}>>;
|
|
319
|
-
}>> | null;
|
|
320
|
-
|
|
321
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
322
|
-
readonly include?: readonly string[] | undefined;
|
|
323
|
-
readonly exclude?: readonly string[] | undefined;
|
|
324
|
-
}>> | undefined;
|
|
325
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
326
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
327
|
-
readonly include?: readonly string[] | undefined;
|
|
328
|
-
readonly exclude?: readonly string[] | undefined;
|
|
329
|
-
}>> | undefined;
|
|
330
|
-
}>> & Readonly<{
|
|
331
|
-
repository_name: MergeIntersection<Readonly<{
|
|
332
|
-
readonly include?: readonly string[] | undefined;
|
|
333
|
-
readonly exclude?: readonly string[] | undefined;
|
|
334
|
-
readonly protected?: boolean | undefined;
|
|
335
|
-
}>>;
|
|
336
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
337
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
338
|
-
readonly include?: readonly string[] | undefined;
|
|
339
|
-
readonly exclude?: readonly string[] | undefined;
|
|
340
|
-
}>> | undefined;
|
|
341
|
-
}>> & Readonly<{
|
|
342
|
-
repository_id: MergeIntersection<Readonly<{
|
|
343
|
-
readonly repository_ids?: readonly number[] | undefined;
|
|
344
|
-
}>>;
|
|
345
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
346
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
347
|
-
readonly include?: readonly string[] | undefined;
|
|
348
|
-
readonly exclude?: readonly string[] | undefined;
|
|
349
|
-
}>> | undefined;
|
|
350
|
-
}>> & Readonly<{
|
|
351
|
-
repository_property: MergeIntersection<Readonly<{
|
|
352
|
-
readonly include?: readonly MergeIntersection<Readonly<{
|
|
353
|
-
readonly source?: "custom" | "system" | undefined;
|
|
354
|
-
} & {
|
|
355
|
-
name: string;
|
|
356
|
-
property_values: readonly string[];
|
|
357
|
-
}>>[] | undefined;
|
|
358
|
-
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
359
|
-
readonly source?: "custom" | "system" | undefined;
|
|
360
|
-
} & {
|
|
361
|
-
name: string;
|
|
362
|
-
property_values: readonly string[];
|
|
363
|
-
}>>[] | undefined;
|
|
364
|
-
}>>;
|
|
365
|
-
}>> | null;
|
|
366
|
-
cast: (a: unknown) => MergeIntersection<Readonly<{
|
|
367
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
368
|
-
readonly include?: readonly string[] | undefined;
|
|
369
|
-
readonly exclude?: readonly string[] | undefined;
|
|
370
|
-
}>> | undefined;
|
|
371
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
372
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
373
|
-
readonly include?: readonly string[] | undefined;
|
|
374
|
-
readonly exclude?: readonly string[] | undefined;
|
|
375
|
-
}>> | undefined;
|
|
376
|
-
}>> & Readonly<{
|
|
377
|
-
repository_name: MergeIntersection<Readonly<{
|
|
378
|
-
readonly include?: readonly string[] | undefined;
|
|
379
|
-
readonly exclude?: readonly string[] | undefined;
|
|
380
|
-
readonly protected?: boolean | undefined;
|
|
381
|
-
}>>;
|
|
382
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
383
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
384
|
-
readonly include?: readonly string[] | undefined;
|
|
385
|
-
readonly exclude?: readonly string[] | undefined;
|
|
386
|
-
}>> | undefined;
|
|
387
|
-
}>> & Readonly<{
|
|
388
|
-
repository_id: MergeIntersection<Readonly<{
|
|
389
|
-
readonly repository_ids?: readonly number[] | undefined;
|
|
390
|
-
}>>;
|
|
391
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
392
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
393
|
-
readonly include?: readonly string[] | undefined;
|
|
394
|
-
readonly exclude?: readonly string[] | undefined;
|
|
395
|
-
}>> | undefined;
|
|
396
|
-
}>> & Readonly<{
|
|
397
|
-
repository_property: MergeIntersection<Readonly<{
|
|
398
|
-
readonly include?: readonly MergeIntersection<Readonly<{
|
|
399
|
-
readonly source?: "custom" | "system" | undefined;
|
|
400
|
-
} & {
|
|
401
|
-
name: string;
|
|
402
|
-
property_values: readonly string[];
|
|
403
|
-
}>>[] | undefined;
|
|
404
|
-
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
405
|
-
readonly source?: "custom" | "system" | undefined;
|
|
406
|
-
} & {
|
|
407
|
-
name: string;
|
|
408
|
-
property_values: readonly string[];
|
|
409
|
-
}>>[] | undefined;
|
|
410
|
-
}>>;
|
|
411
|
-
}>> | null;
|
|
412
|
-
fill: (a: unknown) => MergeIntersection<Readonly<{
|
|
413
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
414
|
-
readonly include?: readonly string[] | undefined;
|
|
415
|
-
readonly exclude?: readonly string[] | undefined;
|
|
416
|
-
}>> | undefined;
|
|
417
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
418
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
419
|
-
readonly include?: readonly string[] | undefined;
|
|
420
|
-
readonly exclude?: readonly string[] | undefined;
|
|
421
|
-
}>> | undefined;
|
|
422
|
-
}>> & Readonly<{
|
|
423
|
-
repository_name: MergeIntersection<Readonly<{
|
|
424
|
-
readonly include?: readonly string[] | undefined;
|
|
425
|
-
readonly exclude?: readonly string[] | undefined;
|
|
426
|
-
readonly protected?: boolean | undefined;
|
|
427
|
-
}>>;
|
|
428
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
429
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
430
|
-
readonly include?: readonly string[] | undefined;
|
|
431
|
-
readonly exclude?: readonly string[] | undefined;
|
|
432
|
-
}>> | undefined;
|
|
433
|
-
}>> & Readonly<{
|
|
434
|
-
repository_id: MergeIntersection<Readonly<{
|
|
435
|
-
readonly repository_ids?: readonly number[] | undefined;
|
|
436
|
-
}>>;
|
|
437
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
438
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
439
|
-
readonly include?: readonly string[] | undefined;
|
|
440
|
-
readonly exclude?: readonly string[] | undefined;
|
|
441
|
-
}>> | undefined;
|
|
442
|
-
}>> & Readonly<{
|
|
443
|
-
repository_property: MergeIntersection<Readonly<{
|
|
444
|
-
readonly include?: readonly MergeIntersection<Readonly<{
|
|
445
|
-
readonly source?: "custom" | "system" | undefined;
|
|
446
|
-
} & {
|
|
447
|
-
name: string;
|
|
448
|
-
property_values: readonly string[];
|
|
449
|
-
}>>[] | undefined;
|
|
450
|
-
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
451
|
-
readonly source?: "custom" | "system" | undefined;
|
|
452
|
-
} & {
|
|
453
|
-
name: string;
|
|
454
|
-
property_values: readonly string[];
|
|
455
|
-
}>>[] | undefined;
|
|
456
|
-
}>>;
|
|
457
|
-
}>> | null;
|
|
458
|
-
validate: (a: unknown) => Result<MergeIntersection<Readonly<{
|
|
459
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
460
|
-
readonly include?: readonly string[] | undefined;
|
|
461
|
-
readonly exclude?: readonly string[] | undefined;
|
|
462
|
-
}>> | undefined;
|
|
463
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
464
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
465
|
-
readonly include?: readonly string[] | undefined;
|
|
466
|
-
readonly exclude?: readonly string[] | undefined;
|
|
467
|
-
}>> | undefined;
|
|
468
|
-
}>> & Readonly<{
|
|
469
|
-
repository_name: MergeIntersection<Readonly<{
|
|
470
|
-
readonly include?: readonly string[] | undefined;
|
|
471
|
-
readonly exclude?: readonly string[] | undefined;
|
|
472
|
-
readonly protected?: boolean | undefined;
|
|
473
|
-
}>>;
|
|
474
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
475
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
476
|
-
readonly include?: readonly string[] | undefined;
|
|
477
|
-
readonly exclude?: readonly string[] | undefined;
|
|
478
|
-
}>> | undefined;
|
|
479
|
-
}>> & Readonly<{
|
|
480
|
-
repository_id: MergeIntersection<Readonly<{
|
|
481
|
-
readonly repository_ids?: readonly number[] | undefined;
|
|
482
|
-
}>>;
|
|
483
|
-
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
484
|
-
readonly ref_name?: MergeIntersection<Readonly<{
|
|
485
|
-
readonly include?: readonly string[] | undefined;
|
|
486
|
-
readonly exclude?: readonly string[] | undefined;
|
|
487
|
-
}>> | undefined;
|
|
488
|
-
}>> & Readonly<{
|
|
489
|
-
repository_property: MergeIntersection<Readonly<{
|
|
490
|
-
readonly include?: readonly MergeIntersection<Readonly<{
|
|
491
|
-
readonly source?: "custom" | "system" | undefined;
|
|
492
|
-
} & {
|
|
493
|
-
name: string;
|
|
494
|
-
property_values: readonly string[];
|
|
495
|
-
}>>[] | undefined;
|
|
496
|
-
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
497
|
-
readonly source?: "custom" | "system" | undefined;
|
|
498
|
-
} & {
|
|
499
|
-
name: string;
|
|
500
|
-
property_values: readonly string[];
|
|
501
|
-
}>>[] | undefined;
|
|
502
|
-
}>>;
|
|
503
|
-
}>> | null, readonly Readonly<{
|
|
504
|
-
path: readonly string[];
|
|
505
|
-
actualValue: unknown;
|
|
506
|
-
expectedType: string;
|
|
507
|
-
typeName: string;
|
|
508
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
509
|
-
}>[]>;
|
|
510
|
-
optional?: true;
|
|
511
|
-
}>>;
|
|
512
|
-
readonly rules: t.OptionalPropertyType<Readonly<{
|
|
513
|
-
typeName: string;
|
|
514
|
-
defaultValue: readonly (Readonly<{
|
|
61
|
+
}>> | null | undefined;
|
|
62
|
+
readonly rules?: readonly (Readonly<{
|
|
515
63
|
type: "creation";
|
|
516
64
|
}> | MergeIntersection<Readonly<{
|
|
517
65
|
readonly parameters?: Readonly<{
|
|
@@ -670,14 +218,90 @@ export declare const RulesetPicked: t.PickedType<{
|
|
|
670
218
|
} & {
|
|
671
219
|
type: "code_scanning";
|
|
672
220
|
}>> | MergeIntersection<Readonly<{
|
|
673
|
-
readonly parameters?: MergeIntersection<Readonly<{
|
|
674
|
-
|
|
675
|
-
|
|
221
|
+
readonly parameters?: MergeIntersection<Omit<Readonly<{
|
|
222
|
+
review_on_push: boolean;
|
|
223
|
+
review_draft_pull_requests: boolean;
|
|
224
|
+
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
225
|
+
review_on_push: boolean;
|
|
226
|
+
review_draft_pull_requests: boolean;
|
|
227
|
+
}>, "review_on_push" | "review_draft_pull_requests">>> | undefined;
|
|
228
|
+
} & {
|
|
229
|
+
type: "copilot_code_review";
|
|
230
|
+
}>>)[] | undefined;
|
|
231
|
+
readonly source_type?: "Repository" | "Organization" | "Enterprise" | undefined;
|
|
232
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "pull_requests_only" | "never" | undefined;
|
|
233
|
+
readonly _links?: MergeIntersection<Readonly<{
|
|
234
|
+
readonly self?: MergeIntersection<Readonly<{
|
|
235
|
+
readonly href?: string | undefined;
|
|
236
|
+
}>> | undefined;
|
|
237
|
+
readonly html?: MergeIntersection<Readonly<{
|
|
238
|
+
readonly href?: string | undefined;
|
|
239
|
+
}>> | null | undefined;
|
|
240
|
+
}>> | undefined;
|
|
241
|
+
} & {
|
|
242
|
+
name: string;
|
|
243
|
+
id: number;
|
|
244
|
+
source: string;
|
|
245
|
+
enforcement: "disabled" | "active" | "evaluate";
|
|
246
|
+
}>>, "name" | "id" | "enforcement" | "target" | "bypass_actors" | "conditions" | "rules">>;
|
|
247
|
+
is: (a: unknown) => a is Readonly<Pick<MergeIntersection<Readonly<{
|
|
248
|
+
readonly node_id?: string | undefined;
|
|
249
|
+
readonly created_at?: string | undefined;
|
|
250
|
+
readonly updated_at?: string | undefined;
|
|
251
|
+
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
252
|
+
readonly bypass_actors?: readonly MergeIntersection<Readonly<{
|
|
253
|
+
readonly actor_id?: number | null | undefined;
|
|
254
|
+
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
255
|
+
} & {
|
|
256
|
+
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
257
|
+
}>>[] | undefined;
|
|
258
|
+
readonly conditions?: MergeIntersection<Readonly<{
|
|
259
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
260
|
+
readonly include?: readonly string[] | undefined;
|
|
261
|
+
readonly exclude?: readonly string[] | undefined;
|
|
262
|
+
}>> | undefined;
|
|
263
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
264
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
265
|
+
readonly include?: readonly string[] | undefined;
|
|
266
|
+
readonly exclude?: readonly string[] | undefined;
|
|
676
267
|
}>> | undefined;
|
|
677
|
-
} & {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
268
|
+
}>> & Readonly<{
|
|
269
|
+
repository_name: MergeIntersection<Readonly<{
|
|
270
|
+
readonly include?: readonly string[] | undefined;
|
|
271
|
+
readonly exclude?: readonly string[] | undefined;
|
|
272
|
+
readonly protected?: boolean | undefined;
|
|
273
|
+
}>>;
|
|
274
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
275
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
276
|
+
readonly include?: readonly string[] | undefined;
|
|
277
|
+
readonly exclude?: readonly string[] | undefined;
|
|
278
|
+
}>> | undefined;
|
|
279
|
+
}>> & Readonly<{
|
|
280
|
+
repository_id: MergeIntersection<Readonly<{
|
|
281
|
+
readonly repository_ids?: readonly number[] | undefined;
|
|
282
|
+
}>>;
|
|
283
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
284
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
285
|
+
readonly include?: readonly string[] | undefined;
|
|
286
|
+
readonly exclude?: readonly string[] | undefined;
|
|
287
|
+
}>> | undefined;
|
|
288
|
+
}>> & Readonly<{
|
|
289
|
+
repository_property: MergeIntersection<Readonly<{
|
|
290
|
+
readonly include?: readonly MergeIntersection<Readonly<{
|
|
291
|
+
readonly source?: "custom" | "system" | undefined;
|
|
292
|
+
} & {
|
|
293
|
+
name: string;
|
|
294
|
+
property_values: readonly string[];
|
|
295
|
+
}>>[] | undefined;
|
|
296
|
+
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
297
|
+
readonly source?: "custom" | "system" | undefined;
|
|
298
|
+
} & {
|
|
299
|
+
name: string;
|
|
300
|
+
property_values: readonly string[];
|
|
301
|
+
}>>[] | undefined;
|
|
302
|
+
}>>;
|
|
303
|
+
}>> | null | undefined;
|
|
304
|
+
readonly rules?: readonly (Readonly<{
|
|
681
305
|
type: "creation";
|
|
682
306
|
}> | MergeIntersection<Readonly<{
|
|
683
307
|
readonly parameters?: Readonly<{
|
|
@@ -836,14 +460,90 @@ export declare const RulesetPicked: t.PickedType<{
|
|
|
836
460
|
} & {
|
|
837
461
|
type: "code_scanning";
|
|
838
462
|
}>> | MergeIntersection<Readonly<{
|
|
839
|
-
readonly parameters?: MergeIntersection<Readonly<{
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
}
|
|
463
|
+
readonly parameters?: MergeIntersection<Omit<Readonly<{
|
|
464
|
+
review_on_push: boolean;
|
|
465
|
+
review_draft_pull_requests: boolean;
|
|
466
|
+
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
467
|
+
review_on_push: boolean;
|
|
468
|
+
review_draft_pull_requests: boolean;
|
|
469
|
+
}>, "review_on_push" | "review_draft_pull_requests">>> | undefined;
|
|
843
470
|
} & {
|
|
844
471
|
type: "copilot_code_review";
|
|
845
|
-
}>>)[];
|
|
846
|
-
|
|
472
|
+
}>>)[] | undefined;
|
|
473
|
+
readonly source_type?: "Repository" | "Organization" | "Enterprise" | undefined;
|
|
474
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "pull_requests_only" | "never" | undefined;
|
|
475
|
+
readonly _links?: MergeIntersection<Readonly<{
|
|
476
|
+
readonly self?: MergeIntersection<Readonly<{
|
|
477
|
+
readonly href?: string | undefined;
|
|
478
|
+
}>> | undefined;
|
|
479
|
+
readonly html?: MergeIntersection<Readonly<{
|
|
480
|
+
readonly href?: string | undefined;
|
|
481
|
+
}>> | null | undefined;
|
|
482
|
+
}>> | undefined;
|
|
483
|
+
} & {
|
|
484
|
+
name: string;
|
|
485
|
+
id: number;
|
|
486
|
+
source: string;
|
|
487
|
+
enforcement: "disabled" | "active" | "evaluate";
|
|
488
|
+
}>>, "name" | "id" | "enforcement" | "target" | "bypass_actors" | "conditions" | "rules">>;
|
|
489
|
+
assertIs: (a: unknown) => asserts a is Readonly<Pick<MergeIntersection<Readonly<{
|
|
490
|
+
readonly node_id?: string | undefined;
|
|
491
|
+
readonly created_at?: string | undefined;
|
|
492
|
+
readonly updated_at?: string | undefined;
|
|
493
|
+
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
494
|
+
readonly bypass_actors?: readonly MergeIntersection<Readonly<{
|
|
495
|
+
readonly actor_id?: number | null | undefined;
|
|
496
|
+
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
497
|
+
} & {
|
|
498
|
+
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
499
|
+
}>>[] | undefined;
|
|
500
|
+
readonly conditions?: MergeIntersection<Readonly<{
|
|
501
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
502
|
+
readonly include?: readonly string[] | undefined;
|
|
503
|
+
readonly exclude?: readonly string[] | undefined;
|
|
504
|
+
}>> | undefined;
|
|
505
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
506
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
507
|
+
readonly include?: readonly string[] | undefined;
|
|
508
|
+
readonly exclude?: readonly string[] | undefined;
|
|
509
|
+
}>> | undefined;
|
|
510
|
+
}>> & Readonly<{
|
|
511
|
+
repository_name: MergeIntersection<Readonly<{
|
|
512
|
+
readonly include?: readonly string[] | undefined;
|
|
513
|
+
readonly exclude?: readonly string[] | undefined;
|
|
514
|
+
readonly protected?: boolean | undefined;
|
|
515
|
+
}>>;
|
|
516
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
517
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
518
|
+
readonly include?: readonly string[] | undefined;
|
|
519
|
+
readonly exclude?: readonly string[] | undefined;
|
|
520
|
+
}>> | undefined;
|
|
521
|
+
}>> & Readonly<{
|
|
522
|
+
repository_id: MergeIntersection<Readonly<{
|
|
523
|
+
readonly repository_ids?: readonly number[] | undefined;
|
|
524
|
+
}>>;
|
|
525
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
526
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
527
|
+
readonly include?: readonly string[] | undefined;
|
|
528
|
+
readonly exclude?: readonly string[] | undefined;
|
|
529
|
+
}>> | undefined;
|
|
530
|
+
}>> & Readonly<{
|
|
531
|
+
repository_property: MergeIntersection<Readonly<{
|
|
532
|
+
readonly include?: readonly MergeIntersection<Readonly<{
|
|
533
|
+
readonly source?: "custom" | "system" | undefined;
|
|
534
|
+
} & {
|
|
535
|
+
name: string;
|
|
536
|
+
property_values: readonly string[];
|
|
537
|
+
}>>[] | undefined;
|
|
538
|
+
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
539
|
+
readonly source?: "custom" | "system" | undefined;
|
|
540
|
+
} & {
|
|
541
|
+
name: string;
|
|
542
|
+
property_values: readonly string[];
|
|
543
|
+
}>>[] | undefined;
|
|
544
|
+
}>>;
|
|
545
|
+
}>> | null | undefined;
|
|
546
|
+
readonly rules?: readonly (Readonly<{
|
|
847
547
|
type: "creation";
|
|
848
548
|
}> | MergeIntersection<Readonly<{
|
|
849
549
|
readonly parameters?: Readonly<{
|
|
@@ -1002,14 +702,90 @@ export declare const RulesetPicked: t.PickedType<{
|
|
|
1002
702
|
} & {
|
|
1003
703
|
type: "code_scanning";
|
|
1004
704
|
}>> | MergeIntersection<Readonly<{
|
|
1005
|
-
readonly parameters?: MergeIntersection<Readonly<{
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
}
|
|
705
|
+
readonly parameters?: MergeIntersection<Omit<Readonly<{
|
|
706
|
+
review_on_push: boolean;
|
|
707
|
+
review_draft_pull_requests: boolean;
|
|
708
|
+
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
709
|
+
review_on_push: boolean;
|
|
710
|
+
review_draft_pull_requests: boolean;
|
|
711
|
+
}>, "review_on_push" | "review_draft_pull_requests">>> | undefined;
|
|
1009
712
|
} & {
|
|
1010
713
|
type: "copilot_code_review";
|
|
1011
|
-
}>>)[];
|
|
1012
|
-
|
|
714
|
+
}>>)[] | undefined;
|
|
715
|
+
readonly source_type?: "Repository" | "Organization" | "Enterprise" | undefined;
|
|
716
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "pull_requests_only" | "never" | undefined;
|
|
717
|
+
readonly _links?: MergeIntersection<Readonly<{
|
|
718
|
+
readonly self?: MergeIntersection<Readonly<{
|
|
719
|
+
readonly href?: string | undefined;
|
|
720
|
+
}>> | undefined;
|
|
721
|
+
readonly html?: MergeIntersection<Readonly<{
|
|
722
|
+
readonly href?: string | undefined;
|
|
723
|
+
}>> | null | undefined;
|
|
724
|
+
}>> | undefined;
|
|
725
|
+
} & {
|
|
726
|
+
name: string;
|
|
727
|
+
id: number;
|
|
728
|
+
source: string;
|
|
729
|
+
enforcement: "disabled" | "active" | "evaluate";
|
|
730
|
+
}>>, "name" | "id" | "enforcement" | "target" | "bypass_actors" | "conditions" | "rules">>;
|
|
731
|
+
cast: (a: unknown) => Readonly<Pick<MergeIntersection<Readonly<{
|
|
732
|
+
readonly node_id?: string | undefined;
|
|
733
|
+
readonly created_at?: string | undefined;
|
|
734
|
+
readonly updated_at?: string | undefined;
|
|
735
|
+
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
736
|
+
readonly bypass_actors?: readonly MergeIntersection<Readonly<{
|
|
737
|
+
readonly actor_id?: number | null | undefined;
|
|
738
|
+
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
739
|
+
} & {
|
|
740
|
+
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
741
|
+
}>>[] | undefined;
|
|
742
|
+
readonly conditions?: MergeIntersection<Readonly<{
|
|
743
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
744
|
+
readonly include?: readonly string[] | undefined;
|
|
745
|
+
readonly exclude?: readonly string[] | undefined;
|
|
746
|
+
}>> | undefined;
|
|
747
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
748
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
749
|
+
readonly include?: readonly string[] | undefined;
|
|
750
|
+
readonly exclude?: readonly string[] | undefined;
|
|
751
|
+
}>> | undefined;
|
|
752
|
+
}>> & Readonly<{
|
|
753
|
+
repository_name: MergeIntersection<Readonly<{
|
|
754
|
+
readonly include?: readonly string[] | undefined;
|
|
755
|
+
readonly exclude?: readonly string[] | undefined;
|
|
756
|
+
readonly protected?: boolean | undefined;
|
|
757
|
+
}>>;
|
|
758
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
759
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
760
|
+
readonly include?: readonly string[] | undefined;
|
|
761
|
+
readonly exclude?: readonly string[] | undefined;
|
|
762
|
+
}>> | undefined;
|
|
763
|
+
}>> & Readonly<{
|
|
764
|
+
repository_id: MergeIntersection<Readonly<{
|
|
765
|
+
readonly repository_ids?: readonly number[] | undefined;
|
|
766
|
+
}>>;
|
|
767
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
768
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
769
|
+
readonly include?: readonly string[] | undefined;
|
|
770
|
+
readonly exclude?: readonly string[] | undefined;
|
|
771
|
+
}>> | undefined;
|
|
772
|
+
}>> & Readonly<{
|
|
773
|
+
repository_property: MergeIntersection<Readonly<{
|
|
774
|
+
readonly include?: readonly MergeIntersection<Readonly<{
|
|
775
|
+
readonly source?: "custom" | "system" | undefined;
|
|
776
|
+
} & {
|
|
777
|
+
name: string;
|
|
778
|
+
property_values: readonly string[];
|
|
779
|
+
}>>[] | undefined;
|
|
780
|
+
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
781
|
+
readonly source?: "custom" | "system" | undefined;
|
|
782
|
+
} & {
|
|
783
|
+
name: string;
|
|
784
|
+
property_values: readonly string[];
|
|
785
|
+
}>>[] | undefined;
|
|
786
|
+
}>>;
|
|
787
|
+
}>> | null | undefined;
|
|
788
|
+
readonly rules?: readonly (Readonly<{
|
|
1013
789
|
type: "creation";
|
|
1014
790
|
}> | MergeIntersection<Readonly<{
|
|
1015
791
|
readonly parameters?: Readonly<{
|
|
@@ -1168,14 +944,90 @@ export declare const RulesetPicked: t.PickedType<{
|
|
|
1168
944
|
} & {
|
|
1169
945
|
type: "code_scanning";
|
|
1170
946
|
}>> | MergeIntersection<Readonly<{
|
|
1171
|
-
readonly parameters?: MergeIntersection<Readonly<{
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
}
|
|
947
|
+
readonly parameters?: MergeIntersection<Omit<Readonly<{
|
|
948
|
+
review_on_push: boolean;
|
|
949
|
+
review_draft_pull_requests: boolean;
|
|
950
|
+
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
951
|
+
review_on_push: boolean;
|
|
952
|
+
review_draft_pull_requests: boolean;
|
|
953
|
+
}>, "review_on_push" | "review_draft_pull_requests">>> | undefined;
|
|
1175
954
|
} & {
|
|
1176
955
|
type: "copilot_code_review";
|
|
1177
|
-
}>>)[];
|
|
1178
|
-
|
|
956
|
+
}>>)[] | undefined;
|
|
957
|
+
readonly source_type?: "Repository" | "Organization" | "Enterprise" | undefined;
|
|
958
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "pull_requests_only" | "never" | undefined;
|
|
959
|
+
readonly _links?: MergeIntersection<Readonly<{
|
|
960
|
+
readonly self?: MergeIntersection<Readonly<{
|
|
961
|
+
readonly href?: string | undefined;
|
|
962
|
+
}>> | undefined;
|
|
963
|
+
readonly html?: MergeIntersection<Readonly<{
|
|
964
|
+
readonly href?: string | undefined;
|
|
965
|
+
}>> | null | undefined;
|
|
966
|
+
}>> | undefined;
|
|
967
|
+
} & {
|
|
968
|
+
name: string;
|
|
969
|
+
id: number;
|
|
970
|
+
source: string;
|
|
971
|
+
enforcement: "disabled" | "active" | "evaluate";
|
|
972
|
+
}>>, "name" | "id" | "enforcement" | "target" | "bypass_actors" | "conditions" | "rules">>;
|
|
973
|
+
fill: (a: unknown) => Readonly<Pick<MergeIntersection<Readonly<{
|
|
974
|
+
readonly node_id?: string | undefined;
|
|
975
|
+
readonly created_at?: string | undefined;
|
|
976
|
+
readonly updated_at?: string | undefined;
|
|
977
|
+
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
978
|
+
readonly bypass_actors?: readonly MergeIntersection<Readonly<{
|
|
979
|
+
readonly actor_id?: number | null | undefined;
|
|
980
|
+
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
981
|
+
} & {
|
|
982
|
+
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
983
|
+
}>>[] | undefined;
|
|
984
|
+
readonly conditions?: MergeIntersection<Readonly<{
|
|
985
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
986
|
+
readonly include?: readonly string[] | undefined;
|
|
987
|
+
readonly exclude?: readonly string[] | undefined;
|
|
988
|
+
}>> | undefined;
|
|
989
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
990
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
991
|
+
readonly include?: readonly string[] | undefined;
|
|
992
|
+
readonly exclude?: readonly string[] | undefined;
|
|
993
|
+
}>> | undefined;
|
|
994
|
+
}>> & Readonly<{
|
|
995
|
+
repository_name: MergeIntersection<Readonly<{
|
|
996
|
+
readonly include?: readonly string[] | undefined;
|
|
997
|
+
readonly exclude?: readonly string[] | undefined;
|
|
998
|
+
readonly protected?: boolean | undefined;
|
|
999
|
+
}>>;
|
|
1000
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
1001
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
1002
|
+
readonly include?: readonly string[] | undefined;
|
|
1003
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1004
|
+
}>> | undefined;
|
|
1005
|
+
}>> & Readonly<{
|
|
1006
|
+
repository_id: MergeIntersection<Readonly<{
|
|
1007
|
+
readonly repository_ids?: readonly number[] | undefined;
|
|
1008
|
+
}>>;
|
|
1009
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
1010
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
1011
|
+
readonly include?: readonly string[] | undefined;
|
|
1012
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1013
|
+
}>> | undefined;
|
|
1014
|
+
}>> & Readonly<{
|
|
1015
|
+
repository_property: MergeIntersection<Readonly<{
|
|
1016
|
+
readonly include?: readonly MergeIntersection<Readonly<{
|
|
1017
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1018
|
+
} & {
|
|
1019
|
+
name: string;
|
|
1020
|
+
property_values: readonly string[];
|
|
1021
|
+
}>>[] | undefined;
|
|
1022
|
+
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
1023
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1024
|
+
} & {
|
|
1025
|
+
name: string;
|
|
1026
|
+
property_values: readonly string[];
|
|
1027
|
+
}>>[] | undefined;
|
|
1028
|
+
}>>;
|
|
1029
|
+
}>> | null | undefined;
|
|
1030
|
+
readonly rules?: readonly (Readonly<{
|
|
1179
1031
|
type: "creation";
|
|
1180
1032
|
}> | MergeIntersection<Readonly<{
|
|
1181
1033
|
readonly parameters?: Readonly<{
|
|
@@ -1334,14 +1186,90 @@ export declare const RulesetPicked: t.PickedType<{
|
|
|
1334
1186
|
} & {
|
|
1335
1187
|
type: "code_scanning";
|
|
1336
1188
|
}>> | MergeIntersection<Readonly<{
|
|
1337
|
-
readonly parameters?: MergeIntersection<Readonly<{
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
}
|
|
1189
|
+
readonly parameters?: MergeIntersection<Omit<Readonly<{
|
|
1190
|
+
review_on_push: boolean;
|
|
1191
|
+
review_draft_pull_requests: boolean;
|
|
1192
|
+
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
1193
|
+
review_on_push: boolean;
|
|
1194
|
+
review_draft_pull_requests: boolean;
|
|
1195
|
+
}>, "review_on_push" | "review_draft_pull_requests">>> | undefined;
|
|
1341
1196
|
} & {
|
|
1342
1197
|
type: "copilot_code_review";
|
|
1343
|
-
}>>)[];
|
|
1344
|
-
|
|
1198
|
+
}>>)[] | undefined;
|
|
1199
|
+
readonly source_type?: "Repository" | "Organization" | "Enterprise" | undefined;
|
|
1200
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "pull_requests_only" | "never" | undefined;
|
|
1201
|
+
readonly _links?: MergeIntersection<Readonly<{
|
|
1202
|
+
readonly self?: MergeIntersection<Readonly<{
|
|
1203
|
+
readonly href?: string | undefined;
|
|
1204
|
+
}>> | undefined;
|
|
1205
|
+
readonly html?: MergeIntersection<Readonly<{
|
|
1206
|
+
readonly href?: string | undefined;
|
|
1207
|
+
}>> | null | undefined;
|
|
1208
|
+
}>> | undefined;
|
|
1209
|
+
} & {
|
|
1210
|
+
name: string;
|
|
1211
|
+
id: number;
|
|
1212
|
+
source: string;
|
|
1213
|
+
enforcement: "disabled" | "active" | "evaluate";
|
|
1214
|
+
}>>, "name" | "id" | "enforcement" | "target" | "bypass_actors" | "conditions" | "rules">>;
|
|
1215
|
+
validate: (a: unknown) => Result<Readonly<Pick<MergeIntersection<Readonly<{
|
|
1216
|
+
readonly node_id?: string | undefined;
|
|
1217
|
+
readonly created_at?: string | undefined;
|
|
1218
|
+
readonly updated_at?: string | undefined;
|
|
1219
|
+
readonly target?: "push" | "repository" | "branch" | "tag" | undefined;
|
|
1220
|
+
readonly bypass_actors?: readonly MergeIntersection<Readonly<{
|
|
1221
|
+
readonly actor_id?: number | null | undefined;
|
|
1222
|
+
readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
|
|
1223
|
+
} & {
|
|
1224
|
+
actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
1225
|
+
}>>[] | undefined;
|
|
1226
|
+
readonly conditions?: MergeIntersection<Readonly<{
|
|
1227
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
1228
|
+
readonly include?: readonly string[] | undefined;
|
|
1229
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1230
|
+
}>> | undefined;
|
|
1231
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
1232
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
1233
|
+
readonly include?: readonly string[] | undefined;
|
|
1234
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1235
|
+
}>> | undefined;
|
|
1236
|
+
}>> & Readonly<{
|
|
1237
|
+
repository_name: MergeIntersection<Readonly<{
|
|
1238
|
+
readonly include?: readonly string[] | undefined;
|
|
1239
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1240
|
+
readonly protected?: boolean | undefined;
|
|
1241
|
+
}>>;
|
|
1242
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
1243
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
1244
|
+
readonly include?: readonly string[] | undefined;
|
|
1245
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1246
|
+
}>> | undefined;
|
|
1247
|
+
}>> & Readonly<{
|
|
1248
|
+
repository_id: MergeIntersection<Readonly<{
|
|
1249
|
+
readonly repository_ids?: readonly number[] | undefined;
|
|
1250
|
+
}>>;
|
|
1251
|
+
}>> | MergeIntersection<MergeIntersection<Readonly<{
|
|
1252
|
+
readonly ref_name?: MergeIntersection<Readonly<{
|
|
1253
|
+
readonly include?: readonly string[] | undefined;
|
|
1254
|
+
readonly exclude?: readonly string[] | undefined;
|
|
1255
|
+
}>> | undefined;
|
|
1256
|
+
}>> & Readonly<{
|
|
1257
|
+
repository_property: MergeIntersection<Readonly<{
|
|
1258
|
+
readonly include?: readonly MergeIntersection<Readonly<{
|
|
1259
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1260
|
+
} & {
|
|
1261
|
+
name: string;
|
|
1262
|
+
property_values: readonly string[];
|
|
1263
|
+
}>>[] | undefined;
|
|
1264
|
+
readonly exclude?: readonly MergeIntersection<Readonly<{
|
|
1265
|
+
readonly source?: "custom" | "system" | undefined;
|
|
1266
|
+
} & {
|
|
1267
|
+
name: string;
|
|
1268
|
+
property_values: readonly string[];
|
|
1269
|
+
}>>[] | undefined;
|
|
1270
|
+
}>>;
|
|
1271
|
+
}>> | null | undefined;
|
|
1272
|
+
readonly rules?: readonly (Readonly<{
|
|
1345
1273
|
type: "creation";
|
|
1346
1274
|
}> | MergeIntersection<Readonly<{
|
|
1347
1275
|
readonly parameters?: Readonly<{
|
|
@@ -1500,53 +1428,39 @@ export declare const RulesetPicked: t.PickedType<{
|
|
|
1500
1428
|
} & {
|
|
1501
1429
|
type: "code_scanning";
|
|
1502
1430
|
}>> | MergeIntersection<Readonly<{
|
|
1503
|
-
readonly parameters?: MergeIntersection<Readonly<{
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
}
|
|
1431
|
+
readonly parameters?: MergeIntersection<Omit<Readonly<{
|
|
1432
|
+
review_on_push: boolean;
|
|
1433
|
+
review_draft_pull_requests: boolean;
|
|
1434
|
+
}>, "review_on_push" | "review_draft_pull_requests"> & Partial<Pick<Readonly<{
|
|
1435
|
+
review_on_push: boolean;
|
|
1436
|
+
review_draft_pull_requests: boolean;
|
|
1437
|
+
}>, "review_on_push" | "review_draft_pull_requests">>> | undefined;
|
|
1507
1438
|
} & {
|
|
1508
1439
|
type: "copilot_code_review";
|
|
1509
|
-
}>>)[]
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
typeName: string;
|
|
1530
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
1531
|
-
}>[]>;
|
|
1532
|
-
optional?: true;
|
|
1533
|
-
}>>;
|
|
1534
|
-
readonly updated_at: t.OptionalPropertyType<Readonly<{
|
|
1440
|
+
}>>)[] | undefined;
|
|
1441
|
+
readonly source_type?: "Repository" | "Organization" | "Enterprise" | undefined;
|
|
1442
|
+
readonly current_user_can_bypass?: "always" | "exempt" | "pull_requests_only" | "never" | undefined;
|
|
1443
|
+
readonly _links?: MergeIntersection<Readonly<{
|
|
1444
|
+
readonly self?: MergeIntersection<Readonly<{
|
|
1445
|
+
readonly href?: string | undefined;
|
|
1446
|
+
}>> | undefined;
|
|
1447
|
+
readonly html?: MergeIntersection<Readonly<{
|
|
1448
|
+
readonly href?: string | undefined;
|
|
1449
|
+
}>> | null | undefined;
|
|
1450
|
+
}>> | undefined;
|
|
1451
|
+
} & {
|
|
1452
|
+
name: string;
|
|
1453
|
+
id: number;
|
|
1454
|
+
source: string;
|
|
1455
|
+
enforcement: "disabled" | "active" | "evaluate";
|
|
1456
|
+
}>>, "name" | "id" | "enforcement" | "target" | "bypass_actors" | "conditions" | "rules">>, readonly Readonly<{
|
|
1457
|
+
path: readonly string[];
|
|
1458
|
+
actualValue: unknown;
|
|
1459
|
+
expectedType: string;
|
|
1535
1460
|
typeName: string;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
fill: (a: unknown) => string;
|
|
1541
|
-
validate: (a: unknown) => Result<string, readonly Readonly<{
|
|
1542
|
-
path: readonly string[];
|
|
1543
|
-
actualValue: unknown;
|
|
1544
|
-
expectedType: string;
|
|
1545
|
-
typeName: string;
|
|
1546
|
-
details?: t.ValidationErrorDetails | undefined;
|
|
1547
|
-
}>[]>;
|
|
1548
|
-
optional?: true;
|
|
1549
|
-
}>>;
|
|
1550
|
-
}, readonly ["id", "name", "target", "enforcement", "bypass_actors", "conditions", "rules"], "strip">;
|
|
1461
|
+
details?: t.ValidationErrorDetails | undefined;
|
|
1462
|
+
}>[]>;
|
|
1463
|
+
optional?: true;
|
|
1464
|
+
}>;
|
|
1551
1465
|
export type RulesetPicked = t.TypeOf<typeof RulesetPicked>;
|
|
1552
1466
|
//# sourceMappingURL=constants.d.mts.map
|