github-settings-as-code 2.1.0 → 2.1.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.
|
@@ -71,7 +71,8 @@ const { values, positionals } = util.parseArgs({
|
|
|
71
71
|
});
|
|
72
72
|
if (values.help === true || Arr.isEmpty(positionals)) {
|
|
73
73
|
console.info(HELP);
|
|
74
|
-
|
|
74
|
+
// Asking for help is not an error, even though being given no command is.
|
|
75
|
+
process.exit(values.help === true ? 0 : 1);
|
|
75
76
|
}
|
|
76
77
|
const [commandArg, targetArg = 'all'] = positionals;
|
|
77
78
|
if (commandArg === undefined || !isCommand(commandArg)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-settings.mjs","sourceRoot":"","sources":["../../src/cmd/repo-settings.mts"],"names":[],"mappings":";AAEA,OAAO,eAAe,CAAC;AACvB,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCZ,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAC;AAI9C,MAAM,OAAO,GAAG;IACd,KAAK;IACL,YAAY;IACZ,UAAU;IACV,WAAW;IACX,SAAS;IACT,OAAO;CACC,CAAC;AAIX,MAAM,WAAW,GAAwB,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;AAE3D,MAAM,SAAS,GAAG,CAAC,KAAa,EAAoB,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAE9E,MAAM,UAAU,GAAwB,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;AAEzD,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAmB,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAE3E,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GAAG,EAAE,KAAK,IAAI,EAAE;YACd,MAAM,MAAM,CAAC,cAAc,EAAE,CAAC;YAE9B,MAAM,MAAM,CAAC,wBAAwB,EAAE,CAAC;YAExC,MAAM,MAAM,CAAC,qBAAqB,EAAE,CAAC;YAErC,MAAM,MAAM,CAAC,mBAAmB,EAAE,CAAC;QACrC,CAAC;QACD,UAAU,EAAE,MAAM,CAAC,wBAAwB;QAC3C,QAAQ,EAAE,MAAM,CAAC,cAAc;QAC/B,OAAO,EAAE,MAAM,CAAC,qBAAqB;QACrC,KAAK,EAAE,MAAM,CAAC,mBAAmB;KAClC;CACO,CAAC;AAEX,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;AAE9C,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACzB,IAAI,CAAC,IAAI,UAAU,kCAAkC,SAAS,GAAG,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,MAAM,EAAE,CAAC"}
|
|
@@ -12,9 +12,9 @@ export const applyVariables = async () => {
|
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
// noshiro-repo-automation-bot (App ID: 4478721)
|
|
15
|
-
// Contents / Pull requests / Issues 権限。PR を作る自動化( pnpm-update
|
|
16
|
-
//
|
|
17
|
-
//
|
|
15
|
+
// Contents / Pull requests / Issues 権限。PR を作る自動化( pnpm-update )と
|
|
16
|
+
// release で共用する。実際に使う権限は各ワークフローの permission-* 入力で
|
|
17
|
+
// 絞る。
|
|
18
18
|
name: 'REPO_AUTOMATION_BOT_CLIENT_ID',
|
|
19
19
|
value: 'Iv23lilpiDh0twq2PErv',
|
|
20
20
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.mjs","sourceRoot":"","sources":["../../../src/github/variables/apply.mts"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EACL,kBAAk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C,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC,CAAC;AAEF,IAAI,kBAAkB,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACxC,MAAM,cAAc,EAAE,CAAC;AACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-settings-as-code",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
],
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/noshiro-pf/
|
|
11
|
+
"url": "git+https://github.com/noshiro-pf/mono.git",
|
|
12
|
+
"directory": "libs/github-settings-as-code"
|
|
12
13
|
},
|
|
13
14
|
"license": "Apache-2.0",
|
|
14
15
|
"author": "noshiro-pf <noshiro.pf@gmail.com>",
|
|
@@ -23,90 +24,35 @@
|
|
|
23
24
|
"README.md",
|
|
24
25
|
"LICENSE"
|
|
25
26
|
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"agents:gen": "tsx ./scripts/cmd/gen-agents-md.mts",
|
|
28
|
-
"agents:sync": "tsx ./scripts/cmd/sync-agent-config.mts",
|
|
29
|
-
"build": "tsx ./scripts/cmd/build.mts",
|
|
30
|
-
"build:min": "tsx ./scripts/cmd/build.mts --skip-check",
|
|
31
|
-
"check:ext": "tsx ./scripts/cmd/check-ext.mts",
|
|
32
|
-
"check-all": "tsx ./scripts/cmd/check-all.mts",
|
|
33
|
-
"codemod": "run-s codemod:uncommitted:as-const fmt codemod:uncommitted:readonly fmt",
|
|
34
|
-
"codemod:diff": "run-s codemod:diff:as-const fmt codemod:diff:readonly fmt",
|
|
35
|
-
"codemod:diff:as-const": "append-as-const --diff-from origin/main '{src,scripts,samples}/**/*.mts'",
|
|
36
|
-
"codemod:diff:readonly": "convert-to-readonly --diff-from origin/main '{src,scripts,samples}/**/*.mts'",
|
|
37
|
-
"codemod:full": "run-s codemod:full:as-const fmt codemod:full:readonly fmt",
|
|
38
|
-
"codemod:full:as-const": "append-as-const '{src,scripts,samples}/**/*.mts'",
|
|
39
|
-
"codemod:full:readonly": "convert-to-readonly '{src,scripts,samples}/**/*.mts'",
|
|
40
|
-
"codemod:uncommitted:as-const": "append-as-const --uncommitted '{src,scripts,samples}/**/*.mts'",
|
|
41
|
-
"codemod:uncommitted:readonly": "convert-to-readonly --uncommitted '{src,scripts,samples}/**/*.mts'",
|
|
42
|
-
"cspell": "cspell \"{**,.changeset/**/*,.github/**/*}\" --gitignore --gitignore-root ./ --no-progress",
|
|
43
|
-
"doc": "tsx ./scripts/cmd/gen-docs.mts",
|
|
44
|
-
"fmt": "format-uncommitted",
|
|
45
|
-
"fmt:diff": "format-diff-from origin/main",
|
|
46
|
-
"fmt:full": "prettier --write .",
|
|
47
|
-
"gi": "run-s gi:src fmt",
|
|
48
|
-
"gi:src": "gen-index-ts ./src/github --index-ext .mts --export-ext .mjs --target-ext .mts --exclude cmd --exclude octokit.mts",
|
|
49
|
-
"lint": "eslint .",
|
|
50
|
-
"lint:fix": "eslint . --fix",
|
|
51
|
-
"md": "markdownlint-cli2",
|
|
52
|
-
"repo-settings:apply": "tsx ./src/cmd/repo-settings.mts apply",
|
|
53
|
-
"repo-settings:backup": "tsx ./src/cmd/repo-settings.mts backup",
|
|
54
|
-
"test": "pnpm run z:vitest:node run",
|
|
55
|
-
"test:cov": "pnpm run z:vitest:node run --coverage",
|
|
56
|
-
"test:cov:ui": "vite preview --outDir ./coverage",
|
|
57
|
-
"test:ui": "pnpm run z:vitest:node --ui",
|
|
58
|
-
"testw": "pnpm run z:vitest:node watch",
|
|
59
|
-
"tsc": "node ./node_modules/typescript-native/bin/tsc --noEmit",
|
|
60
|
-
"tscw": "node ./node_modules/typescript-native/bin/tsc --noEmit --watch -p ./tsconfig.json",
|
|
61
|
-
"type-check": "node ./node_modules/typescript-native/bin/tsc --noEmit",
|
|
62
|
-
"z:vitest": "vitest --config ./configs/vitest.config.mts",
|
|
63
|
-
"z:vitest:node": "pnpm run z:vitest --project='Node.js'"
|
|
64
|
-
},
|
|
65
27
|
"dependencies": {
|
|
66
28
|
"@octokit/core": "^7.0.7",
|
|
67
29
|
"dotenv": "^17.4.2",
|
|
68
|
-
"octokit-safe-types": "^1.2.
|
|
69
|
-
"ts-data-forge": "^14.1
|
|
70
|
-
"ts-fortress": "^12.0.
|
|
71
|
-
"ts-
|
|
30
|
+
"octokit-safe-types": "^1.2.25",
|
|
31
|
+
"ts-data-forge": "^14.2.1",
|
|
32
|
+
"ts-fortress": "^12.0.1",
|
|
33
|
+
"ts-repo-utils": "^10.2.0",
|
|
34
|
+
"ts-type-forge": "^9.2.1"
|
|
72
35
|
},
|
|
73
36
|
"devDependencies": {
|
|
74
|
-
"@semantic-release/changelog": "7.0.0",
|
|
75
|
-
"@semantic-release/commit-analyzer": "13.0.1",
|
|
76
|
-
"@semantic-release/exec": "7.1.0",
|
|
77
|
-
"@semantic-release/git": "11.0.1",
|
|
78
|
-
"@semantic-release/github": "12.0.9",
|
|
79
|
-
"@semantic-release/npm": "13.1.5",
|
|
80
|
-
"@semantic-release/release-notes-generator": "14.1.1",
|
|
81
37
|
"@types/node": "26.2.0",
|
|
82
38
|
"@vitest/coverage-v8": "4.1.10",
|
|
83
39
|
"@vitest/ui": "4.1.10",
|
|
84
|
-
"conventional-changelog-conventionalcommits": "10.2.1",
|
|
85
40
|
"cspell": "10.0.1",
|
|
86
41
|
"eslint": "10.8.0",
|
|
87
|
-
"eslint-config-typed": "5.8.4",
|
|
88
|
-
"eslint-plugin-ts-data-forge": "0.4.2",
|
|
89
|
-
"eslint-plugin-ts-fortress": "1.0.0",
|
|
90
|
-
"eslint-plugin-ts-type-forge": "0.6.1",
|
|
91
42
|
"jiti": "2.7.0",
|
|
92
|
-
"markdownlint": "0.41.1",
|
|
93
|
-
"markdownlint-cli2": "0.23.2",
|
|
94
43
|
"npm-run-all2": "9.0.3",
|
|
95
|
-
"playwright": "1.62.1",
|
|
96
44
|
"prettier": "3.9.6",
|
|
97
45
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
98
46
|
"prettier-plugin-packagejson": "3.0.2",
|
|
99
|
-
"semantic-release": "25.0.8",
|
|
100
|
-
"ts-codemod-lib": "2.2.4",
|
|
101
|
-
"ts-repo-utils": "10.1.7",
|
|
102
47
|
"tsx": "4.23.4",
|
|
103
|
-
"typedoc": "0.28.20",
|
|
104
|
-
"typedoc-github-theme": "0.4.0",
|
|
105
48
|
"typescript": "6.0.3",
|
|
106
49
|
"typescript-native": "npm:typescript@7.0.2",
|
|
107
|
-
"vitest": "4.1.10"
|
|
50
|
+
"vitest": "4.1.10",
|
|
51
|
+
"eslint-config-typed": "5.8.6",
|
|
52
|
+
"eslint-plugin-ts-data-forge": "0.4.5",
|
|
53
|
+
"eslint-plugin-ts-fortress": "1.0.1",
|
|
54
|
+
"eslint-plugin-ts-type-forge": "0.6.3"
|
|
108
55
|
},
|
|
109
|
-
"packageManager": "pnpm@11.20.0",
|
|
110
56
|
"engines": {
|
|
111
57
|
"node": ">=22.22.2",
|
|
112
58
|
"pnpm": ">=9.0.0"
|
|
@@ -117,5 +63,39 @@
|
|
|
117
63
|
"publishConfig": {
|
|
118
64
|
"access": "public",
|
|
119
65
|
"provenance": true
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/build.mts",
|
|
69
|
+
"build:min": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/build.mts --skip-check",
|
|
70
|
+
"check:ext": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/check-ext.mts",
|
|
71
|
+
"check-all": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/check-all.mts",
|
|
72
|
+
"codemod": "run-s codemod:uncommitted:as-const fmt codemod:uncommitted:readonly fmt",
|
|
73
|
+
"codemod:diff": "run-s codemod:diff:as-const fmt codemod:diff:readonly fmt",
|
|
74
|
+
"codemod:diff:as-const": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/append-as-const.mts --diff-from origin/main '{src,scripts,samples}/**/*.mts'",
|
|
75
|
+
"codemod:diff:readonly": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/convert-to-readonly.mts --diff-from origin/main '{src,scripts,samples}/**/*.mts'",
|
|
76
|
+
"codemod:full": "run-s codemod:full:as-const fmt codemod:full:readonly fmt",
|
|
77
|
+
"codemod:full:as-const": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/append-as-const.mts '{src,scripts,samples}/**/*.mts'",
|
|
78
|
+
"codemod:full:readonly": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/convert-to-readonly.mts '{src,scripts,samples}/**/*.mts'",
|
|
79
|
+
"codemod:uncommitted:as-const": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/append-as-const.mts --uncommitted '{src,scripts,samples}/**/*.mts'",
|
|
80
|
+
"codemod:uncommitted:readonly": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/convert-to-readonly.mts --uncommitted '{src,scripts,samples}/**/*.mts'",
|
|
81
|
+
"cspell": "cspell \"**\" --gitignore --gitignore-root ../../ --no-progress",
|
|
82
|
+
"doc": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/gen-docs.mts",
|
|
83
|
+
"fmt": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-uncommitted.mts --cwd .",
|
|
84
|
+
"fmt:diff": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-diff-from.mts origin/main --cwd .",
|
|
85
|
+
"fmt:full": "prettier --write .",
|
|
86
|
+
"gi": "run-s gi:src fmt",
|
|
87
|
+
"gi:src": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/gen-index-ts.mts ./src/github --index-ext .mts --export-ext .mjs --target-ext .mts --exclude cmd --exclude octokit.mts",
|
|
88
|
+
"lint": "eslint .",
|
|
89
|
+
"lint:fix": "eslint . --fix",
|
|
90
|
+
"test": "pnpm run z:vitest:node run",
|
|
91
|
+
"test:cov": "pnpm run z:vitest:node run --coverage",
|
|
92
|
+
"test:cov:ui": "vite preview --outDir ./coverage",
|
|
93
|
+
"test:ui": "pnpm run z:vitest:node --ui",
|
|
94
|
+
"testw": "pnpm run z:vitest:node watch",
|
|
95
|
+
"tsc": "node ../../node_modules/typescript-native/bin/tsc --noEmit",
|
|
96
|
+
"tscw": "node ../../node_modules/typescript-native/bin/tsc --noEmit --watch -p ./tsconfig.json",
|
|
97
|
+
"type-check": "node ../../node_modules/typescript-native/bin/tsc --noEmit",
|
|
98
|
+
"z:vitest": "vitest --config ./configs/vitest.config.mts",
|
|
99
|
+
"z:vitest:node": "pnpm run z:vitest --project='Node.js'"
|
|
120
100
|
}
|
|
121
|
-
}
|
|
101
|
+
}
|
|
@@ -91,7 +91,8 @@ const { values, positionals } = util.parseArgs({
|
|
|
91
91
|
if (values.help === true || Arr.isEmpty(positionals)) {
|
|
92
92
|
console.info(HELP);
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
// Asking for help is not an error, even though being given no command is.
|
|
95
|
+
process.exit(values.help === true ? 0 : 1);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
const [commandArg, targetArg = 'all'] = positionals;
|
|
@@ -17,9 +17,9 @@ export const applyVariables = async (): Promise<void> => {
|
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
// noshiro-repo-automation-bot (App ID: 4478721)
|
|
20
|
-
// Contents / Pull requests / Issues 権限。PR を作る自動化( pnpm-update
|
|
21
|
-
//
|
|
22
|
-
//
|
|
20
|
+
// Contents / Pull requests / Issues 権限。PR を作る自動化( pnpm-update )と
|
|
21
|
+
// release で共用する。実際に使う権限は各ワークフローの permission-* 入力で
|
|
22
|
+
// 絞る。
|
|
23
23
|
name: 'REPO_AUTOMATION_BOT_CLIENT_ID',
|
|
24
24
|
value: 'Iv23lilpiDh0twq2PErv',
|
|
25
25
|
},
|