Skip to content

Commit

Permalink
[SKIP CI][Tooling] Add script to create translation changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed May 11, 2024
1 parent 1325fe6 commit 3bc6777
Show file tree
Hide file tree
Showing 7 changed files with 393 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ node_modules/

build/*

tools/scripts/github_token.json
tools/scripts/tokens.json

src/lib/graphql/schema.json
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Suwayomi-WebUI-r$rev *",
"lint": "eslint src --ext .ts,.tsx,.js,.jsx --max-warnings=0 --cache",
"createChangelog": "ts-node -T tools/scripts/createReleaseChangelog.ts",
"createTranslationChangelog": "ts-node -T -r tsconfig-paths/register tools/scripts/createTranslationChangelog.ts",
"updateDeps": "ts-node -T tools/scripts/updateDependencies.ts",
"gql:codegen-base": "graphql-codegen --config gql_codegen.ts",
"gql:codegen-formatter": "ts-node -T tools/scripts/codegenFormatter.ts",
Expand Down Expand Up @@ -95,6 +96,7 @@
"syncyarnlock": "1.0.19",
"terser": "5.31.0",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.4.5",
"vite": "5.2.11",
"vite-tsconfig-paths": "4.3.2",
Expand Down
4 changes: 2 additions & 2 deletions tools/scripts/createReleaseChangelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import yargs from 'yargs';
import githubToken from './github_token.json';
import tokens from './tokens.json';

const { sha } = yargs
.options({
Expand Down Expand Up @@ -130,7 +130,7 @@ const fetchCommits = async (
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${githubToken.token}`,
Authorization: `Bearer ${tokens.githubToken}`,
},
body: JSON.stringify({ query, variables }),
})
Expand Down
Loading

0 comments on commit 3bc6777

Please sign in to comment.