From a29c94813b8325843b984727af22ec05d2eed022 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Mon, 8 Jan 2024 14:08:48 +0900 Subject: [PATCH] . --- .eslintignore | 2 + .../add-focused-issue-to-project.yml | 13 ++ .github/workflows/add-issue-to-project.yml | 11 ++ .../workflows/add-ready-issue-to-project.yml | 13 ++ .github/workflows/close-comment.yml | 8 ++ .github/workflows/notify-ready.yml | 10 ++ .github/workflows/wbfy-merge.yml | 12 ++ .github/workflows/wbfy.yml | 12 ++ .gitignore | 2 + .husky/post-merge | 2 + .idea/watcherTasks.xml | 10 +- .prettierignore | 2 + README.md | 4 +- next.config.js | 2 +- package.json | 4 +- yarn.lock | 112 ++++++++++++++---- 16 files changed, 185 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/add-focused-issue-to-project.yml create mode 100644 .github/workflows/add-issue-to-project.yml create mode 100644 .github/workflows/add-ready-issue-to-project.yml create mode 100644 .github/workflows/close-comment.yml create mode 100644 .github/workflows/notify-ready.yml create mode 100644 .github/workflows/wbfy-merge.yml create mode 100644 .github/workflows/wbfy.yml diff --git a/.eslintignore b/.eslintignore index 8e9b877d..9a836e8e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -22,6 +22,8 @@ Icon[ ] !.keep */mount/*.hash +*.sqlite3* +*.sqlite3-journal # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows diff --git a/.github/workflows/add-focused-issue-to-project.yml b/.github/workflows/add-focused-issue-to-project.yml new file mode 100644 index 00000000..04fd4393 --- /dev/null +++ b/.github/workflows/add-focused-issue-to-project.yml @@ -0,0 +1,13 @@ +name: Add focused issue to GitHub project +on: + issues: + types: + - labeled +jobs: + add-focused-issue-to-project: + uses: exKAZUu-Research/reusable-workflows/.github/workflows/add-issue-to-project.yml@main + with: + label: 'focused :dart:' + secrets: + GH_PROJECT_URL: https://github.com/orgs/WillBooster/projects/7 + GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} diff --git a/.github/workflows/add-issue-to-project.yml b/.github/workflows/add-issue-to-project.yml new file mode 100644 index 00000000..f0d5600d --- /dev/null +++ b/.github/workflows/add-issue-to-project.yml @@ -0,0 +1,11 @@ +name: Add issue to GitHub project +on: + issues: + types: + - labeled +jobs: + add-issue-to-project: + uses: exKAZUu-Research/reusable-workflows/.github/workflows/add-issue-to-project.yml@main + secrets: + GH_PROJECT_URL: ${{ secrets.GH_PROJECT_URL }} + GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} diff --git a/.github/workflows/add-ready-issue-to-project.yml b/.github/workflows/add-ready-issue-to-project.yml new file mode 100644 index 00000000..cd42fe04 --- /dev/null +++ b/.github/workflows/add-ready-issue-to-project.yml @@ -0,0 +1,13 @@ +name: Add ready issue to GitHub project +on: + issues: + types: + - labeled +jobs: + add-ready-issue-to-project: + uses: exKAZUu-Research/reusable-workflows/.github/workflows/add-issue-to-project.yml@main + with: + label: 'ready :rocket:' + secrets: + GH_PROJECT_URL: https://github.com/orgs/WillBoosterLab/projects/5 + GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} diff --git a/.github/workflows/close-comment.yml b/.github/workflows/close-comment.yml new file mode 100644 index 00000000..253afb2f --- /dev/null +++ b/.github/workflows/close-comment.yml @@ -0,0 +1,8 @@ +name: Add close comment +on: + pull_request: + types: + - opened +jobs: + close-comment: + uses: exKAZUu-Research/reusable-workflows/.github/workflows/close-comment.yml@main diff --git a/.github/workflows/notify-ready.yml b/.github/workflows/notify-ready.yml new file mode 100644 index 00000000..572f9b83 --- /dev/null +++ b/.github/workflows/notify-ready.yml @@ -0,0 +1,10 @@ +name: Notify ready +on: + issues: + types: + - labeled +jobs: + notify-ready: + uses: exKAZUu-Research/reusable-workflows/.github/workflows/notify-ready.yml@main + secrets: + DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL_FOR_READY }} diff --git a/.github/workflows/wbfy-merge.yml b/.github/workflows/wbfy-merge.yml new file mode 100644 index 00000000..25f29dd0 --- /dev/null +++ b/.github/workflows/wbfy-merge.yml @@ -0,0 +1,12 @@ +name: Merge wbfy +on: + workflow_dispatch: + schedule: + - cron: 5 17 * * * +jobs: + wbfy-merge: + uses: exKAZUu-Research/reusable-workflows/.github/workflows/wbfy-merge.yml@main + with: + github_hosted_runner: true + secrets: + GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} diff --git a/.github/workflows/wbfy.yml b/.github/workflows/wbfy.yml new file mode 100644 index 00000000..e9e65db3 --- /dev/null +++ b/.github/workflows/wbfy.yml @@ -0,0 +1,12 @@ +name: Willboosterify +on: + workflow_dispatch: + schedule: + - cron: 10 11 * * * +jobs: + wbfy: + uses: exKAZUu-Research/reusable-workflows/.github/workflows/wbfy.yml@main + with: + github_hosted_runner: true + secrets: + GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} diff --git a/.gitignore b/.gitignore index 7c7860a7..9d2f528a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ Icon[ ] !.keep */mount/*.hash +*.sqlite3* +*.sqlite3-journal # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows diff --git a/.husky/post-merge b/.husky/post-merge index 8d16fdbb..3dd254b3 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -12,3 +12,5 @@ run_if_changed() { run_if_changed "\..+-version" "asdf plugin update --all" run_if_changed "\..+-version" "asdf install" run_if_changed "package\.json" "yarn && rm -Rf .next" +run_if_changed "prisma/schema.prisma" "node node_modules/.bin/dotenv -c development -- node node_modules/.bin/prisma migrate deploy" +run_if_changed "prisma/schema.prisma" "node node_modules/.bin/dotenv -c development -- node node_modules/.bin/prisma generate" diff --git a/.idea/watcherTasks.xml b/.idea/watcherTasks.xml index a4c7262e..71a27745 100644 --- a/.idea/watcherTasks.xml +++ b/.idea/watcherTasks.xml @@ -1,7 +1,7 @@ - + - + - + - + - \ No newline at end of file + diff --git a/.prettierignore b/.prettierignore index 8c1f6801..f5e12fff 100644 --- a/.prettierignore +++ b/.prettierignore @@ -19,6 +19,8 @@ Icon[ ] !.keep */mount/*.hash +*.sqlite3* +*.sqlite3-journal # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows diff --git a/README.md b/README.md index 04f18690..3dfa3b20 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # trace-dojo -An educational web app for training program tracing skills. - [![Test](https://github.com/exKAZUu-Research/trace-dojo/actions/workflows/test.yml/badge.svg)](https://github.com/exKAZUu-Research/trace-dojo/actions/workflows/test.yml) + +An educational web app for training program tracing skills. diff --git a/next.config.js b/next.config.js index 658404ac..cdf9c89d 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,4 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { eslint: { ignoreDuringBuilds: true }, typescript: { ignoreBuildErrors: true } }; module.exports = nextConfig; diff --git a/package.json b/package.json index d057eefe..4e0048f0 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,8 @@ "@types/micromatch": "4.0.4", "@types/node": "20.8.10", "@types/react-dom": "18.2.14", - "@typescript-eslint/eslint-plugin": "6.16.0", - "@typescript-eslint/parser": "6.16.0", + "@typescript-eslint/eslint-plugin": "6.18.0", + "@typescript-eslint/parser": "6.18.0", "@willbooster/eslint-config-next": "1.1.0", "@willbooster/prettier-config": "9.1.2", "@willbooster/wb": "6.1.15", diff --git a/yarn.lock b/yarn.lock index 016134de..8b7c862a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3903,15 +3903,15 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:6.16.0": - version: 6.16.0 - resolution: "@typescript-eslint/eslint-plugin@npm:6.16.0" +"@typescript-eslint/eslint-plugin@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/eslint-plugin@npm:6.18.0" dependencies: "@eslint-community/regexpp": "npm:^4.5.1" - "@typescript-eslint/scope-manager": "npm:6.16.0" - "@typescript-eslint/type-utils": "npm:6.16.0" - "@typescript-eslint/utils": "npm:6.16.0" - "@typescript-eslint/visitor-keys": "npm:6.16.0" + "@typescript-eslint/scope-manager": "npm:6.18.0" + "@typescript-eslint/type-utils": "npm:6.18.0" + "@typescript-eslint/utils": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" debug: "npm:^4.3.4" graphemer: "npm:^1.4.0" ignore: "npm:^5.2.4" @@ -3924,11 +3924,29 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: c8a68e0953d8b94f6b85d3a82090e61e670bcb0945cbee4d741321c56db727429ad47c48b8403ad1dab3b0842689bd2d4b85c99b76c51ac4f5be7f5f61c4c314 + checksum: b89fae0d075be717dc4f9bed451bc5fb3416c5cc8ec519dae14d85dd8a7c4b60e21c87f91441cde1d84cd85d32253adc205a06dab7a33556152cc3a059bb5899 + languageName: node + linkType: hard + +"@typescript-eslint/parser@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/parser@npm:6.18.0" + dependencies: + "@typescript-eslint/scope-manager": "npm:6.18.0" + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/typescript-estree": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" + debug: "npm:^4.3.4" + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 5ae2c541157056d9d55fba66a2ecff7c870860579aaf8c33a89133e0bd35aaff3c1e923648417d66791f75fe39795bdaa31fc82d44613dc5872e1ce4640b608a languageName: node linkType: hard -"@typescript-eslint/parser@npm:6.16.0, @typescript-eslint/parser@npm:^5.4.2 || ^6.0.0": +"@typescript-eslint/parser@npm:^5.4.2 || ^6.0.0": version: 6.16.0 resolution: "@typescript-eslint/parser@npm:6.16.0" dependencies: @@ -3956,12 +3974,22 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:6.16.0": - version: 6.16.0 - resolution: "@typescript-eslint/type-utils@npm:6.16.0" +"@typescript-eslint/scope-manager@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/scope-manager@npm:6.18.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:6.16.0" - "@typescript-eslint/utils": "npm:6.16.0" + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" + checksum: 688de3cffa894ef402ee5f4ba265bcd26e21aac5e98b265dbc77eb0dbaf690602ddce6c56df0973764c560fcff290304e54d86620f11fc45394d3b556d4bfcf8 + languageName: node + linkType: hard + +"@typescript-eslint/type-utils@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/type-utils@npm:6.18.0" + dependencies: + "@typescript-eslint/typescript-estree": "npm:6.18.0" + "@typescript-eslint/utils": "npm:6.18.0" debug: "npm:^4.3.4" ts-api-utils: "npm:^1.0.1" peerDependencies: @@ -3969,7 +3997,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: a5339cc1375d12411fcb242249143b28401fb18890bb2a1cff5275ba946affb4a2066cd8203e83ac383bd9d791a79ea6ee1cbf7a30deed5c832ed002897bbf82 + checksum: 121ab9846cdcfeb385502f816a01a2d97cff9f13d320ebd265662ec66a58f4639483cf5a9c790db3e5dbab20c13c21e8506096174d83d6971e359f1272ec94fc languageName: node linkType: hard @@ -3980,6 +4008,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/types@npm:6.18.0" + checksum: 7bdbbd3ab040d10505c06e6cd3ac0eaf3f0450aa3098eb30f0b1706e06c9a1f9637c9e98ff67e05af235c55a7ccb0053368de072cd4a4f830c9b048d2575f91f + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:6.16.0": version: 6.16.0 resolution: "@typescript-eslint/typescript-estree@npm:6.16.0" @@ -3999,20 +4034,39 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:6.16.0": - version: 6.16.0 - resolution: "@typescript-eslint/utils@npm:6.16.0" +"@typescript-eslint/typescript-estree@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/typescript-estree@npm:6.18.0" + dependencies: + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" + debug: "npm:^4.3.4" + globby: "npm:^11.1.0" + is-glob: "npm:^4.0.3" + minimatch: "npm:9.0.3" + semver: "npm:^7.5.4" + ts-api-utils: "npm:^1.0.1" + peerDependenciesMeta: + typescript: + optional: true + checksum: 67d377dbf66bae4d40b60cc838cc0f0337a8532925c5e2da5b1a08d882077276ff4bb1a41270179a0fa46bbf3840a284d65f5b97a69832444d4d0609c0b9b31e + languageName: node + linkType: hard + +"@typescript-eslint/utils@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/utils@npm:6.18.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" "@types/json-schema": "npm:^7.0.12" "@types/semver": "npm:^7.5.0" - "@typescript-eslint/scope-manager": "npm:6.16.0" - "@typescript-eslint/types": "npm:6.16.0" - "@typescript-eslint/typescript-estree": "npm:6.16.0" + "@typescript-eslint/scope-manager": "npm:6.18.0" + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/typescript-estree": "npm:6.18.0" semver: "npm:^7.5.4" peerDependencies: eslint: ^7.0.0 || ^8.0.0 - checksum: 586c4c0e1ca249daf9958f0d88df3af010a7592a19db1a7dc198754542b584314896536fe56ea9c93dd0ddd531154e7697002643d46e24a8d3a459721a626e91 + checksum: 1dc0b133fb061065ec9da9cb18ae4147c5d1656f2c0c9aca7390448802b912d1935b5e85f879de884466737cc5153a1acb370eee32b27be57302cf6a9d0b382a languageName: node linkType: hard @@ -4026,6 +4080,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/visitor-keys@npm:6.18.0" + dependencies: + "@typescript-eslint/types": "npm:6.18.0" + eslint-visitor-keys: "npm:^3.4.1" + checksum: ef5697fdae84eafe4835919352d6e2a6ccd654942fa45d5980518fab291c176ac19d97e3579ed3462988bcf9d5c4ba7edeaca979378ab2e81dfa0fef0ce346e2 + languageName: node + linkType: hard + "@ungap/structured-clone@npm:^1.2.0": version: 1.2.0 resolution: "@ungap/structured-clone@npm:1.2.0" @@ -10478,8 +10542,8 @@ __metadata: "@types/micromatch": "npm:4.0.4" "@types/node": "npm:20.8.10" "@types/react-dom": "npm:18.2.14" - "@typescript-eslint/eslint-plugin": "npm:6.16.0" - "@typescript-eslint/parser": "npm:6.16.0" + "@typescript-eslint/eslint-plugin": "npm:6.18.0" + "@typescript-eslint/parser": "npm:6.18.0" "@willbooster/eslint-config-next": "npm:1.1.0" "@willbooster/prettier-config": "npm:9.1.2" "@willbooster/shared-lib-react": "npm:3.0.0"