github-settings-as-code 2.0.1 → 2.1.1

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.
Files changed (42) hide show
  1. package/dist/cmd/repo-settings.mjs +5 -4
  2. package/dist/cmd/repo-settings.mjs.map +1 -1
  3. package/dist/github/actions-settings/api/get-actions-settings.d.mts.map +1 -1
  4. package/dist/github/actions-settings/api/get-actions-settings.mjs +1 -4
  5. package/dist/github/actions-settings/api/get-actions-settings.mjs.map +1 -1
  6. package/dist/github/index.d.mts +0 -1
  7. package/dist/github/index.d.mts.map +1 -1
  8. package/dist/github/index.mjs +0 -1
  9. package/dist/github/index.mjs.map +1 -1
  10. package/dist/github/pages/api/get-pages-settings.d.mts.map +1 -1
  11. package/dist/github/pages/api/get-pages-settings.mjs +2 -4
  12. package/dist/github/pages/api/get-pages-settings.mjs.map +1 -1
  13. package/dist/github/repository/apply.d.mts.map +1 -1
  14. package/dist/github/repository/apply.mjs.map +1 -1
  15. package/dist/github/repository/constants.d.mts +80 -80
  16. package/dist/github/repository/constants.d.mts.map +1 -1
  17. package/dist/github/repository/constants.mjs +1 -2
  18. package/dist/github/repository/constants.mjs.map +1 -1
  19. package/dist/github/resolve-target-repo.mjs +3 -3
  20. package/dist/github/resolve-target-repo.mjs.map +1 -1
  21. package/dist/github/ruleset/constants.d.mts +88 -32
  22. package/dist/github/ruleset/constants.d.mts.map +1 -1
  23. package/dist/github/ruleset/constants.mjs +1 -2
  24. package/dist/github/ruleset/constants.mjs.map +1 -1
  25. package/dist/github/variables/apply.d.mts.map +1 -1
  26. package/dist/github/variables/apply.mjs +3 -12
  27. package/dist/github/variables/apply.mjs.map +1 -1
  28. package/package.json +52 -69
  29. package/src/cmd/repo-settings.mts +9 -6
  30. package/src/github/actions-settings/api/get-actions-settings.mts +1 -8
  31. package/src/github/index.mts +0 -1
  32. package/src/github/pages/api/get-pages-settings.mts +2 -6
  33. package/src/github/repository/apply.mts +2 -1
  34. package/src/github/repository/constants.mts +1 -5
  35. package/src/github/resolve-target-repo.mts +3 -3
  36. package/src/github/ruleset/constants.mts +1 -5
  37. package/src/github/variables/apply.mts +3 -12
  38. package/dist/github/upgrade-stale-codec.d.mts +0 -19
  39. package/dist/github/upgrade-stale-codec.d.mts.map +0 -1
  40. package/dist/github/upgrade-stale-codec.mjs +0 -20
  41. package/dist/github/upgrade-stale-codec.mjs.map +0 -1
  42. package/src/github/upgrade-stale-codec.mts +0 -29
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/repository/constants.mts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,QAAA,MAAM,cAAc,0fA0BkC,CAAC;AAEvD,QAAA,MAAM,cAAc,YAClB,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,YAAY,EAGZ,eAAe,CACP,CAAC;AAMX,eAAO,MAAM,oBAAoB,2gBAEhC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAC9C,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,EAC/B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAChC,CAAC;AAIF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { FullRepository, } from 'octokit-safe-types';
2
2
  import { expectType } from 'ts-data-forge';
3
3
  import * as t from 'ts-fortress';
4
- import { upgradeStaleCodec } from '../upgrade-stale-codec.mjs';
5
4
  const keysToPickBase = [
6
5
  'allow_auto_merge',
7
6
  'allow_forking',
@@ -44,5 +43,5 @@ const keysToDropList = [
44
43
  const keysToDrop = new Set(keysToDropList);
45
44
  export const repositoryKeysToPick = keysToPickBase.filter((k) => !keysToDrop.has(k));
46
45
  expectType('>=');
47
- export const RepositoryPicked = t.pick(upgradeStaleCodec(FullRepository), repositoryKeysToPick);
46
+ export const RepositoryPicked = t.pick(FullRepository, repositoryKeysToPick);
48
47
  //# sourceMappingURL=constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../../src/github/repository/constants.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GAEf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,cAAc,GAAG;IACrB,kBAAkB;IAClB,eAAe;IACf,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,UAAU;IACV,gBAAgB;IAChB,wBAAwB;IACxB,aAAa;IACb,YAAY;IACZ,cAAc;IACd,UAAU;IACV,UAAU;IACV,aAAa;IACb,sBAAsB;IACtB,oBAAoB;IACpB,MAAM;IACN,SAAS;IACT,uBAAuB;IACvB,6BAA6B;IAC7B,2BAA2B;IAC3B,gCAAgC;IAChC,YAAY;IACZ,6BAA6B;CACuB,CAAC;AAEvD,MAAM,cAAc,GAAG;IACrB,MAAM;IACN,SAAS;IACT,aAAa;IACb,UAAU;IACV,gBAAgB;IAChB,aAAa;IACb,UAAU;IACV,YAAY;IAEZ,8FAA8F;IAC9F,eAAe;CACP,CAAC;AAEX,MAAM,UAAU,GAAiD,IAAI,GAAG,CACtE,cAAmE,CACpE,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC,MAAM,CACvD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAC1B,CAAC;AAOF,UAAU,CAAsD,IAAI,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CACpC,iBAAiB,CAAC,cAAc,CAAC,EACjC,oBAAoB,CACrB,CAAC"}
1
+ {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../../src/github/repository/constants.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GAEf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,MAAM,cAAc,GAAG;IACrB,kBAAkB;IAClB,eAAe;IACf,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,UAAU;IACV,gBAAgB;IAChB,wBAAwB;IACxB,aAAa;IACb,YAAY;IACZ,cAAc;IACd,UAAU;IACV,UAAU;IACV,aAAa;IACb,sBAAsB;IACtB,oBAAoB;IACpB,MAAM;IACN,SAAS;IACT,uBAAuB;IACvB,6BAA6B;IAC7B,2BAA2B;IAC3B,gCAAgC;IAChC,YAAY;IACZ,6BAA6B;CACuB,CAAC;AAEvD,MAAM,cAAc,GAAG;IACrB,MAAM;IACN,SAAS;IACT,aAAa;IACb,UAAU;IACV,gBAAgB;IAChB,aAAa;IACb,UAAU;IACV,YAAY;IAEZ,8FAA8F;IAC9F,eAAe;CACP,CAAC;AAEX,MAAM,UAAU,GAAiD,IAAI,GAAG,CACtE,cAAmE,CACpE,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC,MAAM,CACvD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAC1B,CAAC;AAOF,UAAU,CAAsD,IAAI,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC"}
@@ -2,10 +2,10 @@ import { execFileSync } from 'node:child_process';
2
2
  import * as fs from 'node:fs/promises';
3
3
  import * as path from 'node:path';
4
4
  import * as util from 'node:util';
5
- import { hasKey, isRecord, isString, Json } from 'ts-data-forge';
5
+ import { Arr, hasKey, isRecord, isString, Json } from 'ts-data-forge';
6
6
  import { Result } from 'ts-repo-utils';
7
7
  /** `strict: false` の解析結果は string | boolean | 配列 になりうるため絞り込む。 */
8
- const pickString = (value) => isString(value) && value !== '' ? value : undefined;
8
+ const pickString = (value) => value !== '' && isString(value) ? value : undefined;
9
9
  /**
10
10
  * コマンドライン引数から `--owner` / `--repo` を読む。
11
11
  *
@@ -13,7 +13,7 @@ const pickString = (value) => isString(value) && value !== '' ? value : undefine
13
13
  */
14
14
  const fromCliArgs = () => {
15
15
  const { values } = util.parseArgs({
16
- args: process.argv.slice(2),
16
+ args: Arr.skip(process.argv, 2),
17
17
  options: {
18
18
  owner: { type: 'string' },
19
19
  repo: { type: 'string' },
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-target-repo.mjs","sourceRoot":"","sources":["../../src/github/resolve-target-repo.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,C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AC;IAEX,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;IAEvE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACb;YACE,oCAAoC;YACpC,+BAA+B;YAC/B,0BAA0B;YAC1B,wDAAwD;SACzD,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;IAErE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb;YACE,0CAA0C;YAC1C,iCAAiC;YACjC,4BAA4B;YAC5B,wDAAwD;SACzD,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import * as t from 'ts-fortress';
2
2
  export declare const rulesetKeysToPick: readonly ["id", "name", "target", "enforcement", "bypass_actors", "conditions", "rules"];
3
3
  export declare const RulesetPicked: Readonly<{
4
4
  typeName: string;
5
- defaultValue: Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
5
+ defaultValue: Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
6
6
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
7
7
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
8
8
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -94,7 +94,14 @@ export declare const RulesetPicked: Readonly<{
94
94
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
95
95
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
96
96
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
97
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
97
+ readonly required_reviewers?: readonly Readonly<{
98
+ file_patterns: readonly string[];
99
+ minimum_approvals: number;
100
+ reviewer: Readonly<{
101
+ id: number;
102
+ type: "Team";
103
+ }>;
104
+ }>[] | undefined;
98
105
  } & {
99
106
  dismiss_stale_reviews_on_push: boolean;
100
107
  require_code_owner_review: boolean;
@@ -216,10 +223,10 @@ export declare const RulesetPicked: Readonly<{
216
223
  } & {
217
224
  type: "code_scanning";
218
225
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
219
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
226
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
220
227
  review_draft_pull_requests: boolean;
221
228
  review_on_push: boolean;
222
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
229
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
223
230
  review_draft_pull_requests: boolean;
224
231
  review_on_push: boolean;
225
232
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -244,7 +251,7 @@ export declare const RulesetPicked: Readonly<{
244
251
  name: string;
245
252
  source: string;
246
253
  }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
247
- is: (a: unknown) => a is Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
254
+ is: (a: unknown) => a is Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
248
255
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
249
256
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
250
257
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -336,7 +343,14 @@ export declare const RulesetPicked: Readonly<{
336
343
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
337
344
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
338
345
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
339
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
346
+ readonly required_reviewers?: readonly Readonly<{
347
+ file_patterns: readonly string[];
348
+ minimum_approvals: number;
349
+ reviewer: Readonly<{
350
+ id: number;
351
+ type: "Team";
352
+ }>;
353
+ }>[] | undefined;
340
354
  } & {
341
355
  dismiss_stale_reviews_on_push: boolean;
342
356
  require_code_owner_review: boolean;
@@ -458,10 +472,10 @@ export declare const RulesetPicked: Readonly<{
458
472
  } & {
459
473
  type: "code_scanning";
460
474
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
461
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
475
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
462
476
  review_draft_pull_requests: boolean;
463
477
  review_on_push: boolean;
464
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
478
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
465
479
  review_draft_pull_requests: boolean;
466
480
  review_on_push: boolean;
467
481
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -486,7 +500,7 @@ export declare const RulesetPicked: Readonly<{
486
500
  name: string;
487
501
  source: string;
488
502
  }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
489
- assertIs: (a: unknown) => asserts a is Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
503
+ assertIs: (a: unknown) => asserts a is Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
490
504
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
491
505
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
492
506
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -578,7 +592,14 @@ export declare const RulesetPicked: Readonly<{
578
592
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
579
593
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
580
594
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
581
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
595
+ readonly required_reviewers?: readonly Readonly<{
596
+ file_patterns: readonly string[];
597
+ minimum_approvals: number;
598
+ reviewer: Readonly<{
599
+ id: number;
600
+ type: "Team";
601
+ }>;
602
+ }>[] | undefined;
582
603
  } & {
583
604
  dismiss_stale_reviews_on_push: boolean;
584
605
  require_code_owner_review: boolean;
@@ -700,10 +721,10 @@ export declare const RulesetPicked: Readonly<{
700
721
  } & {
701
722
  type: "code_scanning";
702
723
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
703
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
724
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
704
725
  review_draft_pull_requests: boolean;
705
726
  review_on_push: boolean;
706
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
727
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
707
728
  review_draft_pull_requests: boolean;
708
729
  review_on_push: boolean;
709
730
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -728,7 +749,7 @@ export declare const RulesetPicked: Readonly<{
728
749
  name: string;
729
750
  source: string;
730
751
  }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
731
- cast: (a: unknown) => Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
752
+ cast: (a: unknown) => Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
732
753
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
733
754
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
734
755
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -820,7 +841,14 @@ export declare const RulesetPicked: Readonly<{
820
841
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
821
842
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
822
843
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
823
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
844
+ readonly required_reviewers?: readonly Readonly<{
845
+ file_patterns: readonly string[];
846
+ minimum_approvals: number;
847
+ reviewer: Readonly<{
848
+ id: number;
849
+ type: "Team";
850
+ }>;
851
+ }>[] | undefined;
824
852
  } & {
825
853
  dismiss_stale_reviews_on_push: boolean;
826
854
  require_code_owner_review: boolean;
@@ -942,10 +970,10 @@ export declare const RulesetPicked: Readonly<{
942
970
  } & {
943
971
  type: "code_scanning";
944
972
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
945
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
973
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
946
974
  review_draft_pull_requests: boolean;
947
975
  review_on_push: boolean;
948
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
976
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
949
977
  review_draft_pull_requests: boolean;
950
978
  review_on_push: boolean;
951
979
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -970,7 +998,7 @@ export declare const RulesetPicked: Readonly<{
970
998
  name: string;
971
999
  source: string;
972
1000
  }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
973
- fill: (a: unknown) => Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
1001
+ fill: (a: unknown) => Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
974
1002
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
975
1003
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
976
1004
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -1062,7 +1090,14 @@ export declare const RulesetPicked: Readonly<{
1062
1090
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1063
1091
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
1064
1092
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
1065
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
1093
+ readonly required_reviewers?: readonly Readonly<{
1094
+ file_patterns: readonly string[];
1095
+ minimum_approvals: number;
1096
+ reviewer: Readonly<{
1097
+ id: number;
1098
+ type: "Team";
1099
+ }>;
1100
+ }>[] | undefined;
1066
1101
  } & {
1067
1102
  dismiss_stale_reviews_on_push: boolean;
1068
1103
  require_code_owner_review: boolean;
@@ -1184,10 +1219,10 @@ export declare const RulesetPicked: Readonly<{
1184
1219
  } & {
1185
1220
  type: "code_scanning";
1186
1221
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1187
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
1222
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
1188
1223
  review_draft_pull_requests: boolean;
1189
1224
  review_on_push: boolean;
1190
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
1225
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
1191
1226
  review_draft_pull_requests: boolean;
1192
1227
  review_on_push: boolean;
1193
1228
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -1212,7 +1247,7 @@ export declare const RulesetPicked: Readonly<{
1212
1247
  name: string;
1213
1248
  source: string;
1214
1249
  }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
1215
- prune: <B extends Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
1250
+ prune: <B extends Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
1216
1251
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
1217
1252
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
1218
1253
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -1304,7 +1339,14 @@ export declare const RulesetPicked: Readonly<{
1304
1339
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1305
1340
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
1306
1341
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
1307
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
1342
+ readonly required_reviewers?: readonly Readonly<{
1343
+ file_patterns: readonly string[];
1344
+ minimum_approvals: number;
1345
+ reviewer: Readonly<{
1346
+ id: number;
1347
+ type: "Team";
1348
+ }>;
1349
+ }>[] | undefined;
1308
1350
  } & {
1309
1351
  dismiss_stale_reviews_on_push: boolean;
1310
1352
  require_code_owner_review: boolean;
@@ -1426,10 +1468,10 @@ export declare const RulesetPicked: Readonly<{
1426
1468
  } & {
1427
1469
  type: "code_scanning";
1428
1470
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1429
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
1471
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
1430
1472
  review_draft_pull_requests: boolean;
1431
1473
  review_on_push: boolean;
1432
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
1474
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
1433
1475
  review_draft_pull_requests: boolean;
1434
1476
  review_on_push: boolean;
1435
1477
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -1453,7 +1495,7 @@ export declare const RulesetPicked: Readonly<{
1453
1495
  id: number;
1454
1496
  name: string;
1455
1497
  source: string;
1456
- }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>>(a: B) => Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
1498
+ }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>>(a: B) => Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
1457
1499
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
1458
1500
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
1459
1501
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -1545,7 +1587,14 @@ export declare const RulesetPicked: Readonly<{
1545
1587
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1546
1588
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
1547
1589
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
1548
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
1590
+ readonly required_reviewers?: readonly Readonly<{
1591
+ file_patterns: readonly string[];
1592
+ minimum_approvals: number;
1593
+ reviewer: Readonly<{
1594
+ id: number;
1595
+ type: "Team";
1596
+ }>;
1597
+ }>[] | undefined;
1549
1598
  } & {
1550
1599
  dismiss_stale_reviews_on_push: boolean;
1551
1600
  require_code_owner_review: boolean;
@@ -1667,10 +1716,10 @@ export declare const RulesetPicked: Readonly<{
1667
1716
  } & {
1668
1717
  type: "code_scanning";
1669
1718
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1670
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
1719
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
1671
1720
  review_draft_pull_requests: boolean;
1672
1721
  review_on_push: boolean;
1673
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
1722
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
1674
1723
  review_draft_pull_requests: boolean;
1675
1724
  review_on_push: boolean;
1676
1725
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -1695,7 +1744,7 @@ export declare const RulesetPicked: Readonly<{
1695
1744
  name: string;
1696
1745
  source: string;
1697
1746
  }>>, "bypass_actors" | "conditions" | "enforcement" | "id" | "name" | "rules" | "target">>;
1698
- validate: (a: unknown) => t.Result<Readonly<Pick<import("ts-type-forge").MergeIntersection<Readonly<{
1747
+ validate: (a: unknown) => t.Result<Readonly<import("ts-type-forge").StrictPick<import("ts-type-forge").MergeIntersection<Readonly<{
1699
1748
  readonly target?: "branch" | "push" | "repository" | "tag" | undefined;
1700
1749
  readonly source_type?: "Enterprise" | "Organization" | "Repository" | undefined;
1701
1750
  readonly bypass_actors?: readonly import("ts-type-forge").MergeIntersection<Readonly<{
@@ -1787,7 +1836,14 @@ export declare const RulesetPicked: Readonly<{
1787
1836
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1788
1837
  readonly parameters?: import("ts-type-forge").MergeIntersection<Readonly<{
1789
1838
  readonly allowed_merge_methods?: readonly ("merge" | "rebase" | "squash")[] | undefined;
1790
- readonly automatic_copilot_code_review_enabled?: boolean | undefined;
1839
+ readonly required_reviewers?: readonly Readonly<{
1840
+ file_patterns: readonly string[];
1841
+ minimum_approvals: number;
1842
+ reviewer: Readonly<{
1843
+ id: number;
1844
+ type: "Team";
1845
+ }>;
1846
+ }>[] | undefined;
1791
1847
  } & {
1792
1848
  dismiss_stale_reviews_on_push: boolean;
1793
1849
  require_code_owner_review: boolean;
@@ -1909,10 +1965,10 @@ export declare const RulesetPicked: Readonly<{
1909
1965
  } & {
1910
1966
  type: "code_scanning";
1911
1967
  }>> | import("ts-type-forge").MergeIntersection<Readonly<{
1912
- readonly parameters?: import("ts-type-forge").MergeIntersection<Omit<Readonly<{
1968
+ readonly parameters?: import("ts-type-forge").MergeIntersection<import("ts-type-forge").StrictOmit<Readonly<{
1913
1969
  review_draft_pull_requests: boolean;
1914
1970
  review_on_push: boolean;
1915
- }>, "review_draft_pull_requests" | "review_on_push"> & Partial<Pick<Readonly<{
1971
+ }>, "review_draft_pull_requests" | "review_on_push"> & Partial<import("ts-type-forge").StrictPick<Readonly<{
1916
1972
  review_draft_pull_requests: boolean;
1917
1973
  review_on_push: boolean;
1918
1974
  }>, "review_draft_pull_requests" | "review_on_push">>> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../../src/github/ruleset/constants.mts"],"names":[],"mappings":"AAMA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,eAAO,MAAM,iBAAiB,0FAQ2B,CAAC;AAQ1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { RepositoryRuleset, } from 'octokit-safe-types';
2
2
  import { expectType } from 'ts-data-forge';
3
3
  import * as t from 'ts-fortress';
4
- import { upgradeStaleCodec } from '../upgrade-stale-codec.mjs';
5
4
  export const rulesetKeysToPick = [
6
5
  'id',
7
6
  'name',
@@ -13,5 +12,5 @@ export const rulesetKeysToPick = [
13
12
  ];
14
13
  expectType('=');
15
14
  expectType('=');
16
- export const RulesetPicked = t.pick(upgradeStaleCodec(RepositoryRuleset), rulesetKeysToPick);
15
+ export const RulesetPicked = t.pick(RepositoryRuleset, rulesetKeysToPick);
17
16
  //# sourceMappingURL=constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../../src/github/ruleset/constants.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,GAGlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,aAAa;IACb,eAAe;IACf,YAAY;IACZ,OAAO;CACgD,CAAC;AAI1D,UAAU,CAAgD,GAAG,CAAC,CAAC;AAE/D,UAAU,CAAyD,GAAG,CAAC,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CACjC,iBAAiB,CAAC,iBAAiB,CAAC,EACpC,iBAAiB,CAClB,CAAC"}
1
+ {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../../src/github/ruleset/constants.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,GAGlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,aAAa;IACb,eAAe;IACf,YAAY;IACZ,OAAO;CACgD,CAAC;AAI1D,UAAU,CAAgD,GAAG,CAAC,CAAC;AAE/D,UAAU,CAAyD,GAAG,CAAC,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"apply.d.mts","sourceRoot":"","sources":["../../../src/github/variables/apply.mts"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC;AAQvB,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,IAAI,CAsCnD,CAAC"}
1
+ {"version":3,"file":"apply.d.mts","sourceRoot":"","sources":["../../../src/github/variables/apply.mts"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC;AAQvB,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,IAAI,CA6BnD,CAAC"}
@@ -4,16 +4,6 @@ import { isDirectlyExecuted } from 'ts-repo-utils';
4
4
  import { createRepoVariable, listRepoVariables, updateRepoVariable, } from './api/index.mjs';
5
5
  export const applyVariables = async () => {
6
6
  const variables = [
7
- {
8
- // noshiro-semantic-release-bot (App ID: 1442563)
9
- name: 'SEMANTIC_RELEASE_BOT_CLIENT_ID',
10
- value: 'Iv23liAmv2bgTYTkv2pt',
11
- },
12
- {
13
- // noshiro-changesets-release-bot (App ID: 1576218)
14
- name: 'CHANGESETS_RELEASE_BOT_CLIENT_ID',
15
- value: 'Iv23limuZKrTEcXmN0lp',
16
- },
17
7
  {
18
8
  // noshiro-repo-settings-bot (App ID: 4476573)
19
9
  // Administration を含む強い権限を持つ。設定の backup / apply 専用。
@@ -22,8 +12,9 @@ export const applyVariables = async () => {
22
12
  },
23
13
  {
24
14
  // noshiro-repo-automation-bot (App ID: 4478721)
25
- // Contents / Pull requests 権限のみ。PR を作る自動化( pnpm-update /
26
- // sync-agent-config )用。
15
+ // Contents / Pull requests / Issues 権限。PR を作る自動化( pnpm-update /
16
+ // sync-agent-config )と release で共用する。実際に使う権限は各
17
+ // ワークフローの permission-* 入力で絞る。
27
18
  name: 'REPO_AUTOMATION_BOT_CLIENT_ID',
28
19
  value: 'Iv23lilpiDh0twq2PErv',
29
20
  },
@@ -1 +1 @@
1
- {"version":3,"file":"apply.mjs","sourceRoot":"","sources":["../../../src/github/variables/apply.mts"],"names":[],"mappings":";AACA,OAAO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