github-settings-as-code 4.0.1 → 4.0.3

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 (44) hide show
  1. package/dist/github/actions-settings/api/set-actions-settings.d.mts +1 -1
  2. package/dist/github/actions-settings/api/set-actions-settings.d.mts.map +1 -1
  3. package/dist/github/environments/api/set-environment.d.mts +1 -1
  4. package/dist/github/environments/api/set-environment.d.mts.map +1 -1
  5. package/dist/github/pages/api/set-pages-settings.d.mts +1 -1
  6. package/dist/github/pages/api/set-pages-settings.d.mts.map +1 -1
  7. package/dist/github/repository/api/update-repository.d.mts +1 -1
  8. package/dist/github/repository/api/update-repository.d.mts.map +1 -1
  9. package/dist/github/repository/api/update-repository.mjs.map +1 -1
  10. package/dist/github/repository/constants.d.mts +1 -1
  11. package/dist/github/repository/constants.d.mts.map +1 -1
  12. package/dist/github/ruleset/api/create-ruleset.d.mts +1 -1
  13. package/dist/github/ruleset/api/create-ruleset.d.mts.map +1 -1
  14. package/dist/github/ruleset/api/update-ruleset.d.mts +1 -1
  15. package/dist/github/ruleset/api/update-ruleset.d.mts.map +1 -1
  16. package/dist/github/variables/api/list-repo-variables.d.mts +1 -1
  17. package/dist/github/variables/api/list-repo-variables.d.mts.map +1 -1
  18. package/dist/github/variables/backup.d.mts +1 -1
  19. package/dist/github/variables/backup.d.mts.map +1 -1
  20. package/dist/github/vulnerability-alerts/api/set-vulnerability-alerts.d.mts +1 -1
  21. package/dist/github/vulnerability-alerts/api/set-vulnerability-alerts.d.mts.map +1 -1
  22. package/package.json +14 -14
  23. package/src/cmd/repo-settings.mts +1 -1
  24. package/src/github/actions-settings/api/get-actions-settings.mts +1 -1
  25. package/src/github/actions-settings/api/set-actions-settings.mts +2 -2
  26. package/src/github/environments/api/get-environments.mts +1 -1
  27. package/src/github/environments/api/set-environment.mts +2 -2
  28. package/src/github/environments/apply.mts +1 -1
  29. package/src/github/environments/read-environment-contents.mts +1 -1
  30. package/src/github/pages/api/get-pages-settings.mts +1 -1
  31. package/src/github/pages/api/set-pages-settings.mts +2 -2
  32. package/src/github/repository/api/update-repository.mts +1 -4
  33. package/src/github/repository/apply.mts +2 -2
  34. package/src/github/repository/constants.mts +1 -1
  35. package/src/github/ruleset/api/create-ruleset.mts +4 -4
  36. package/src/github/ruleset/api/get-all-rulesets.mts +1 -1
  37. package/src/github/ruleset/api/update-ruleset.mts +4 -4
  38. package/src/github/ruleset/read-rule-set-contents.mts +1 -1
  39. package/src/github/variables/api/create-repo-variable.mts +1 -1
  40. package/src/github/variables/api/list-repo-variables.mts +2 -2
  41. package/src/github/variables/api/update-repo-variable.mts +1 -1
  42. package/src/github/variables/backup.mts +1 -1
  43. package/src/github/vulnerability-alerts/api/get-vulnerability-alerts.mts +1 -1
  44. package/src/github/vulnerability-alerts/api/set-vulnerability-alerts.mts +2 -2
@@ -1,4 +1,4 @@
1
- import { type ActionsSettings } from '../constants.mjs';
1
+ import type { ActionsSettings } from '../constants.mjs';
2
2
  /** Settings > Actions > General を JSON の内容に合わせる。 */
3
3
  export declare const setActionsSettings: (settings: ActionsSettings) => Promise<void>;
4
4
  //# sourceMappingURL=set-actions-settings.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-actions-settings.d.mts","sourceRoot":"","sources":["../../../../src/github/actions-settings/api/set-actions-settings.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,oDAAoD;AACpD,eAAO,MAAM,kBAAkB,aACnB,eAAe,KACxB,OAAO,CAAC,IAAI,CA2Cd,CAAC"}
1
+ {"version":3,"file":"set-actions-settings.d.mts","sourceRoot":"","sources":["../../../../src/github/actions-settings/api/set-actions-settings.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,oDAAoD;AACpD,eAAO,MAAM,kBAAkB,aACnB,eAAe,KACxB,OAAO,CAAC,IAAI,CA2Cd,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type EnvironmentSettings } from '../constants.mjs';
1
+ import type { EnvironmentSettings } from '../constants.mjs';
2
2
  /**
3
3
  * 環境を JSON の内容に合わせる。無ければ作られる。
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"set-environment.d.mts","sourceRoot":"","sources":["../../../../src/github/environments/api/set-environment.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aACf,mBAAmB,KAC5B,OAAO,CAAC,IAAI,CA4Bd,CAAC"}
1
+ {"version":3,"file":"set-environment.d.mts","sourceRoot":"","sources":["../../../../src/github/environments/api/set-environment.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aACf,mBAAmB,KAC5B,OAAO,CAAC,IAAI,CA4Bd,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type PagesSettings } from '../constants.mjs';
1
+ import type { PagesSettings } from '../constants.mjs';
2
2
  /**
3
3
  * GitHub Pages の Source を JSON の内容に合わせる。
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"set-pages-settings.d.mts","sourceRoot":"","sources":["../../../../src/github/pages/api/set-pages-settings.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aACjB,aAAa,KACtB,OAAO,CAAC,IAAI,CAgCd,CAAC"}
1
+ {"version":3,"file":"set-pages-settings.d.mts","sourceRoot":"","sources":["../../../../src/github/pages/api/set-pages-settings.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aACjB,aAAa,KACtB,OAAO,CAAC,IAAI,CAgCd,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type UpdateRepositoryRequest } from 'octokit-safe-types';
1
+ import type { UpdateRepositoryRequest } from 'octokit-safe-types';
2
2
  export declare const updateRepository: ({ payload: { name, description, homepage, private: private_, visibility, security_and_analysis, has_issues, has_projects, has_wiki, has_pull_requests, pull_request_creation_policy, is_template, default_branch, allow_squash_merge, allow_merge_commit, allow_rebase_merge, allow_auto_merge, delete_branch_on_merge, allow_update_branch, use_squash_pr_title_as_default, squash_merge_commit_title, squash_merge_commit_message, merge_commit_title, merge_commit_message, archived, allow_forking, web_commit_signoff_required, }, }: Readonly<{
3
3
  payload: UpdateRepositoryRequest;
4
4
  }>) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"update-repository.d.mts","sourceRoot":"","sources":["../../../../src/github/repository/api/update-repository.mts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,oBAAoB,CAAC;AAK5B,eAAO,MAAM,gBAAgB,8gBA8B1B,QAAQ,CAAC;IACV,OAAO,EAAE,uBAAuB,CAAC;CAClC,CAAC,KAAG,OAAO,CAAC,IAAI,CAmChB,CAAC"}
1
+ {"version":3,"file":"update-repository.d.mts","sourceRoot":"","sources":["../../../../src/github/repository/api/update-repository.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAKhF,eAAO,MAAM,gBAAgB,8gBA8B1B,QAAQ,CAAC;IACV,OAAO,EAAE,uBAAuB,CAAC;CAClC,CAAC,KAAG,OAAO,CAAC,IAAI,CAmChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-repository.mjs","sourceRoot":"","sources":["../../../../src/github/repository/api/update-repository.mts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,EACrC,OAAO,EAAE,EACP,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,OAAO,EAAE,QAAQ,EACjB,UAAU,EACV,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,4BAA4B,EAC5B,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,oBAAoB,EACpB,QAAQ,EACR,aAAa,EACb,2BAA2B,GAC5B,GAGD,EAAiB,EAAE;IACnB,wFAAwF;IACxF,MAAM,OAAO,CAAC,OAAO,CAAC,6BAAoD,EAAE;QAC1E,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,cAAc;QAEvB,IAAI;QACJ,WAAW;QACX,QAAQ;QACR,OAAO,EAAE,QAAQ;QACjB,UAAU;QACV,qBAAqB,EAAE,eAAe,CAAC,qBAAqB,CAAC;QAC7D,UAAU;QACV,YAAY;QACZ,QAAQ;QACR,iBAAiB;QACjB,4BAA4B;QAC5B,WAAW;QACX,cAAc;QACd,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,gBAAgB;QAChB,sBAAsB;QACtB,mBAAmB;QACnB,8BAA8B;QAC9B,yBAAyB;QACzB,2BAA2B;QAC3B,kBAAkB;QAClB,oBAAoB;QACpB,QAAQ;QACR,aAAa;QACb,2BAA2B;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"update-repository.mjs","sourceRoot":"","sources":["../../../../src/github/repository/api/update-repository.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EA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ortress';
2
- import { type StrictExclude } from 'ts-type-forge';
2
+ import type { StrictExclude } from 'ts-type-forge';
3
3
  declare const keysToPickBase: readonly ["allow_auto_merge", "allow_forking", "allow_merge_commit", "allow_rebase_merge", "allow_squash_merge", "allow_update_branch", "archived", "default_branch", "delete_branch_on_merge", "description", "has_issues", "has_projects", "has_wiki", "homepage", "is_template", "merge_commit_message", "merge_commit_title", "name", "private", "security_and_analysis", "squash_merge_commit_message", "squash_merge_commit_title", "use_squash_pr_title_as_default", "visibility", "web_commit_signoff_required"];
4
4
  declare const keysToDropList: readonly ['name', 'private', 'description', 'homepage', 'default_branch', 'is_template', 'archived', 'visibility', 'allow_forking'];
5
5
  export declare const repositoryKeysToPick: ("allow_auto_merge" | "allow_forking" | "allow_merge_commit" | "allow_rebase_merge" | "allow_squash_merge" | "allow_update_branch" | "archived" | "default_branch" | "delete_branch_on_merge" | "description" | "has_issues" | "has_projects" | "has_wiki" | "homepage" | "is_template" | "merge_commit_message" | "merge_commit_title" | "name" | "private" | "security_and_analysis" | "squash_merge_commit_message" | "squash_merge_commit_title" | "use_squash_pr_title_as_default" | "visibility" | "web_commit_signoff_required")[];
@@ -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;AAEnD,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type CreateRulesetRequest } from 'octokit-safe-types';
1
+ import type { CreateRulesetRequest } from 'octokit-safe-types';
2
2
  export declare const createRuleset: ({ payload: { name, target, enforcement, bypass_actors, conditions, rules }, }: Readonly<{
3
3
  payload: CreateRulesetRequest;
4
4
  }>) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-ruleset.d.mts","sourceRoot":"","sources":["../../../../src/github/ruleset/api/create-ruleset.mts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,oBAAoB,CAAC;AAK5B,eAAO,MAAM,aAAa,kFAEvB,QAAQ,CAAC;IACV,OAAO,EAAE,oBAAoB,CAAC;CAC/B,CAAC,KAAG,OAAO,CAAC,IAAI,CAqBhB,CAAC"}
1
+ {"version":3,"file":"create-ruleset.d.mts","sourceRoot":"","sources":["../../../../src/github/ruleset/api/create-ruleset.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,oBAAoB,CAAC;AAK5B,eAAO,MAAM,aAAa,kFAEvB,QAAQ,CAAC;IACV,OAAO,EAAE,oBAAoB,CAAC;CAC/B,CAAC,KAAG,OAAO,CAAC,IAAI,CAqBhB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type UpdateRulesetRequest } from 'octokit-safe-types';
1
+ import type { UpdateRulesetRequest } from 'octokit-safe-types';
2
2
  export declare const updateRuleset: ({ rulesetId, payload: { name, target, enforcement, bypass_actors, conditions, rules }, }: Readonly<{
3
3
  rulesetId: number;
4
4
  payload: UpdateRulesetRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"update-ruleset.d.mts","sourceRoot":"","sources":["../../../../src/github/ruleset/api/update-ruleset.mts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAK5B,eAAO,MAAM,aAAa,6FAGvB,QAAQ,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,oBAAoB,CAAC;CAC/B,CAAC,KAAG,OAAO,CAAC,IAAI,CAsBhB,CAAC"}
1
+ {"version":3,"file":"update-ruleset.d.mts","sourceRoot":"","sources":["../../../../src/github/ruleset/api/update-ruleset.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAK5B,eAAO,MAAM,aAAa,6FAGvB,QAAQ,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,oBAAoB,CAAC;CAC/B,CAAC,KAAG,OAAO,CAAC,IAAI,CAsBhB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type DeepReadonly } from 'ts-type-forge';
1
+ import type { DeepReadonly } from 'ts-type-forge';
2
2
  export declare const listRepoVariables: () => Promise<DeepReadonly<{
3
3
  name: string;
4
4
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"list-repo-variables.d.mts","sourceRoot":"","sources":["../../../../src/github/variables/api/list-repo-variables.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,eAAO,MAAM,iBAAiB,QAAa,OAAO,CAChD,YAAY,CACV;IACE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,EAAE,CACJ,CAeF,CAAC"}
1
+ {"version":3,"file":"list-repo-variables.d.mts","sourceRoot":"","sources":["../../../../src/github/variables/api/list-repo-variables.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,eAAO,MAAM,iBAAiB,QAAa,OAAO,CAChD,YAAY,CACV;IACE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,EAAE,CACJ,CAeF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import 'dotenv/config';
3
3
  import { listRepoVariables } from './api/index.mjs';
4
- import { type RepositoryVariables } from './constants.mjs';
4
+ import type { RepositoryVariables } from './constants.mjs';
5
5
  /**
6
6
  * repository variable の現在値を宣言ファイルへ撮り直す。
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"backup.d.mts","sourceRoot":"","sources":["../../../src/github/variables/backup.mts"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC;AAMvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,SAAe,OAAO,KAAU,OAAO,CAAC,IAAI,CAcvE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,cACb,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,KACvD,mBACoE,CAAC"}
1
+ {"version":3,"file":"backup.d.mts","sourceRoot":"","sources":["../../../src/github/variables/backup.mts"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC;AAMvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,SAAe,OAAO,KAAU,OAAO,CAAC,IAAI,CAcvE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,cACb,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,KACvD,mBACoE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type VulnerabilityAlertsSettings } from '../constants.mjs';
1
+ import type { VulnerabilityAlertsSettings } from '../constants.mjs';
2
2
  /**
3
3
  * Dependabot alerts を JSON の内容に合わせる。
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"set-vulnerability-alerts.d.mts","sourceRoot":"","sources":["../../../../src/github/vulnerability-alerts/api/set-vulnerability-alerts.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,aACvB,2BAA2B,KACpC,OAAO,CAAC,IAAI,CAgBd,CAAC"}
1
+ {"version":3,"file":"set-vulnerability-alerts.d.mts","sourceRoot":"","sources":["../../../../src/github/vulnerability-alerts/api/set-vulnerability-alerts.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,aACvB,2BAA2B,KACpC,OAAO,CAAC,IAAI,CAgBd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-settings-as-code",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "github",
@@ -27,32 +27,32 @@
27
27
  "dependencies": {
28
28
  "@octokit/core": "^7.0.8",
29
29
  "dedent": "^1.7.2",
30
- "dotenv": "^18.0.1",
30
+ "dotenv": "^18.0.5",
31
31
  "octokit-safe-types": "^1.2.28",
32
32
  "ts-data-forge": "^14.7.1",
33
- "ts-fortress": "^12.1.3",
33
+ "ts-fortress": "^12.2.0",
34
34
  "ts-repo-utils": "^10.7.1",
35
35
  "ts-type-forge": "^9.2.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "26.6.2",
39
- "@vitest/coverage-v8": "5.0.1",
40
- "@vitest/ui": "5.0.1",
41
- "cspell": "10.3.3",
42
- "eslint": "10.11.0",
43
- "eslint-config-typed": "5.15.0",
44
- "eslint-plugin-ts-data-forge": "0.8.1",
45
- "eslint-plugin-ts-fortress": "1.2.3",
46
- "eslint-plugin-ts-type-forge": "0.8.4",
38
+ "@types/node": "26.6.4",
39
+ "@vitest/coverage-v8": "5.0.3",
40
+ "@vitest/ui": "5.0.3",
41
+ "cspell": "10.3.6",
42
+ "eslint": "10.12.0",
43
+ "eslint-config-typed": "5.17.1",
44
+ "eslint-plugin-ts-data-forge": "0.8.4",
45
+ "eslint-plugin-ts-fortress": "1.3.1",
46
+ "eslint-plugin-ts-type-forge": "0.8.6",
47
47
  "jiti": "2.7.0",
48
48
  "npm-run-all2": "9.0.3",
49
- "prettier": "3.9.8",
49
+ "prettier": "3.9.9",
50
50
  "prettier-plugin-organize-imports": "4.3.0",
51
51
  "prettier-plugin-packagejson": "3.0.2",
52
52
  "tsx": "4.23.15",
53
53
  "typescript": "6.0.3",
54
54
  "typescript-native": "npm:typescript@7.0.2",
55
- "vitest": "5.0.1"
55
+ "vitest": "5.0.3"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=22.22.2",
@@ -4,7 +4,7 @@ import dedent from 'dedent';
4
4
  import 'dotenv/config';
5
5
  import * as util from 'node:util';
6
6
  import { Arr } from 'ts-data-forge';
7
- import { type ReadonlyRecord } from 'ts-type-forge';
7
+ import type { ReadonlyRecord } from 'ts-type-forge';
8
8
 
9
9
  const HELP = dedent`
10
10
  Usage: repo-settings <command> [target] [options]
@@ -1,4 +1,4 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
3
3
  import { octokit } from '../../octokit.mjs';
4
4
  import { ActionsSettings } from '../constants.mjs';
@@ -1,7 +1,7 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
3
3
  import { octokit } from '../../octokit.mjs';
4
- import { type ActionsSettings } from '../constants.mjs';
4
+ import type { ActionsSettings } from '../constants.mjs';
5
5
 
6
6
  /** Settings > Actions > General を JSON の内容に合わせる。 */
7
7
  export const setActionsSettings = async (
@@ -1,4 +1,4 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { Arr } from 'ts-data-forge';
3
3
  import * as t from 'ts-fortress';
4
4
  import { Result } from 'ts-repo-utils';
@@ -1,7 +1,7 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
3
3
  import { octokit } from '../../octokit.mjs';
4
- import { type EnvironmentSettings } from '../constants.mjs';
4
+ import type { EnvironmentSettings } from '../constants.mjs';
5
5
  import { getDeploymentBranchPolicies } from './get-environments.mjs';
6
6
 
7
7
  /**
@@ -6,7 +6,7 @@ import { formatUncommittedFiles, isDirectlyExecuted } from 'ts-repo-utils';
6
6
  import { environmentsDir } from '../constants.mjs';
7
7
  import { settingsFilePath } from '../settings-file-path.mjs';
8
8
  import { getAllEnvironments, setEnvironment } from './api/index.mjs';
9
- import { type EnvironmentSettings } from './constants.mjs';
9
+ import type { EnvironmentSettings } from './constants.mjs';
10
10
  import { readEnvironmentFiles } from './read-environment-contents.mjs';
11
11
 
12
12
  /**
@@ -1,4 +1,4 @@
1
- import { type Dirent } from 'node:fs';
1
+ import type { Dirent } from 'node:fs';
2
2
  import * as fs from 'node:fs/promises';
3
3
  import * as path from 'node:path';
4
4
  import * as t from 'ts-fortress';
@@ -1,4 +1,4 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { hasKey, isRecord } from 'ts-data-forge';
3
3
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
4
4
  import { octokit } from '../../octokit.mjs';
@@ -1,7 +1,7 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
3
3
  import { octokit } from '../../octokit.mjs';
4
- import { type PagesSettings } from '../constants.mjs';
4
+ import type { PagesSettings } from '../constants.mjs';
5
5
  import { getPagesSettings } from './get-pages-settings.mjs';
6
6
 
7
7
  /**
@@ -1,7 +1,4 @@
1
- import {
2
- type EndpointKeys,
3
- type UpdateRepositoryRequest,
4
- } from 'octokit-safe-types';
1
+ import type { EndpointKeys, UpdateRepositoryRequest } from 'octokit-safe-types';
5
2
  import { castDeepMutable } from 'ts-data-forge';
6
3
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
7
4
  import { octokit } from '../../octokit.mjs';
@@ -2,7 +2,7 @@
2
2
  import 'dotenv/config';
3
3
  import * as fs from 'node:fs/promises';
4
4
  import * as path from 'node:path';
5
- import { type UpdateRepositoryRequest } from 'octokit-safe-types';
5
+ import type { UpdateRepositoryRequest } from 'octokit-safe-types';
6
6
  import { Obj } from 'ts-data-forge';
7
7
  import * as t from 'ts-fortress';
8
8
  import {
@@ -10,7 +10,7 @@ import {
10
10
  isDirectlyExecuted,
11
11
  Result,
12
12
  } from 'ts-repo-utils';
13
- import { type StrictPick } from 'ts-type-forge';
13
+ import type { StrictPick } from 'ts-type-forge';
14
14
  import { repositorySettingsDir, settingsJsonName } from '../constants.mjs';
15
15
  import { getRepositorySettings, updateRepository } from './api/index.mjs';
16
16
  import {
@@ -4,7 +4,7 @@ import {
4
4
  } from 'octokit-safe-types';
5
5
  import { expectType } from 'ts-data-forge';
6
6
  import * as t from 'ts-fortress';
7
- import { type StrictExclude } from 'ts-type-forge';
7
+ import type { StrictExclude } from 'ts-type-forge';
8
8
 
9
9
  const keysToPickBase = [
10
10
  'allow_auto_merge',
@@ -1,7 +1,7 @@
1
- import {
2
- type components,
3
- type CreateRulesetRequest,
4
- type EndpointKeys,
1
+ import type {
2
+ components,
3
+ CreateRulesetRequest,
4
+ EndpointKeys,
5
5
  } from 'octokit-safe-types';
6
6
  import { castDeepMutable } from 'ts-data-forge';
7
7
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
@@ -7,7 +7,7 @@ import {
7
7
  import { expectType } from 'ts-data-forge';
8
8
  import * as t from 'ts-fortress';
9
9
  import { Result } from 'ts-repo-utils';
10
- import { type DeepReadonly } from 'ts-type-forge';
10
+ import type { DeepReadonly } from 'ts-type-forge';
11
11
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
12
12
  import { octokit } from '../../octokit.mjs';
13
13
 
@@ -1,7 +1,7 @@
1
- import {
2
- type components,
3
- type EndpointKeys,
4
- type UpdateRulesetRequest,
1
+ import type {
2
+ components,
3
+ EndpointKeys,
4
+ UpdateRulesetRequest,
5
5
  } from 'octokit-safe-types';
6
6
  import { castDeepMutable } from 'ts-data-forge';
7
7
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
@@ -1,4 +1,4 @@
1
- import { type Dirent } from 'node:fs';
1
+ import type { Dirent } from 'node:fs';
2
2
  import * as fs from 'node:fs/promises';
3
3
  import * as path from 'node:path';
4
4
  import * as t from 'ts-fortress';
@@ -1,4 +1,4 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
3
3
  import { octokit } from '../../octokit.mjs';
4
4
 
@@ -1,5 +1,5 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
2
- import { type DeepReadonly } from 'ts-type-forge';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
+ import type { DeepReadonly } from 'ts-type-forge';
3
3
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
4
4
  import { octokit } from '../../octokit.mjs';
5
5
 
@@ -1,4 +1,4 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
3
3
  import { octokit } from '../../octokit.mjs';
4
4
 
@@ -6,7 +6,7 @@ import { formatUncommittedFiles, isDirectlyExecuted } from 'ts-repo-utils';
6
6
  import { clearJsonFilesIn } from '../clear-json-files.mjs';
7
7
  import { settingsJsonName, variablesDir } from '../constants.mjs';
8
8
  import { listRepoVariables } from './api/index.mjs';
9
- import { type RepositoryVariables } from './constants.mjs';
9
+ import type { RepositoryVariables } from './constants.mjs';
10
10
 
11
11
  /**
12
12
  * repository variable の現在値を宣言ファイルへ撮り直す。
@@ -1,4 +1,4 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { hasKey, isRecord } from 'ts-data-forge';
3
3
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
4
4
  import { octokit } from '../../octokit.mjs';
@@ -1,7 +1,7 @@
1
- import { type EndpointKeys } from 'octokit-safe-types';
1
+ import type { EndpointKeys } from 'octokit-safe-types';
2
2
  import { octokitHeaders, OWNER, REPO } from '../../constants.mjs';
3
3
  import { octokit } from '../../octokit.mjs';
4
- import { type VulnerabilityAlertsSettings } from '../constants.mjs';
4
+ import type { VulnerabilityAlertsSettings } from '../constants.mjs';
5
5
 
6
6
  /**
7
7
  * Dependabot alerts を JSON の内容に合わせる。