From 64dad4da62487fce27f67127782b0f91f55e365f Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Mon, 27 Feb 2023 21:01:35 +0900 Subject: [PATCH] fix: upgrade dependencies (#836) --- .dockerignore | 8 + .editorconfig | 2 +- .eslintignore | 18 +- .gitattributes | 2 + .github/workflows/add-issue-to-project.yml | 11 + .github/workflows/close-comment.yml | 8 + .github/workflows/notify-ready.yml | 10 + .github/workflows/release.yml | 5 +- .github/workflows/test.yml | 12 +- .github/workflows/wbfy-merge.yml | 4 +- .github/workflows/wbfy.yml | 4 +- .gitignore | 13 +- .husky/post-merge | 12 +- .husky/pre-commit | 2 +- .husky/pre-push | 2 +- .idea/watcherTasks.xml | 12 +- .lintstagedrc.cjs | 13 +- .node-version | 1 - .prettierignore | 14 +- .releaserc.json | 5 +- .tool-versions | 2 + .yarn/plugins/plugin-auto-install.cjs | 5 +- .yarnrc.yml | 10 +- README.md | 2 +- package.json | 29 +- rollup.config.js => rollup.config.mjs | 2 +- src/background.ts | 50 +- src/components/Footer.svelte | 6 +- src/config.ts | 2 +- src/{content_scripts.ts => contentScripts.ts} | 21 +- src/encoder/plantUmlEncoder.ts | 3 + src/finder/codeBlockFinder.ts | 2 +- src/finder/finder.ts | 4 +- src/finder/gitHubFinder.ts | 174 ------- src/finder/github/gitHubFileViewFinder.ts | 88 ++++ .../github/gitHubPullRequestDiffFinder.ts | 97 ++++ src/mutator/descriptionMutator.ts | 12 +- src/mutator/diffMutator.ts | 12 +- src/popup.svelte | 8 +- .../index.d.ts => src/types/svelte.d.ts | 0 tsconfig.json | 6 +- yarn.lock | 438 +++++++++--------- 42 files changed, 611 insertions(+), 520 deletions(-) create mode 100644 .dockerignore create mode 100644 .github/workflows/add-issue-to-project.yml create mode 100644 .github/workflows/close-comment.yml create mode 100644 .github/workflows/notify-ready.yml delete mode 100644 .node-version create mode 100644 .tool-versions rename rollup.config.js => rollup.config.mjs (96%) rename src/{content_scripts.ts => contentScripts.ts} (78%) delete mode 100644 src/finder/gitHubFinder.ts create mode 100644 src/finder/github/gitHubFileViewFinder.ts create mode 100644 src/finder/github/gitHubPullRequestDiffFinder.ts rename @types/svelte/index.d.ts => src/types/svelte.d.ts (100%) diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..ed61def0d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +# Project-specific settings (head) + + +# Generated by wbfy + +**/*.sqlite3* + +# Project-specific settings (tail) diff --git a/.editorconfig b/.editorconfig index c19598280..329bb8224 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,7 +6,7 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -[*.{cjs,cpp,dart,htm,html,js,json,json5,jsx,mjs,pu,puml,rb,ts,tsx,vue,yaml,yml}] +[*.{cjs,cpp,cts,dart,htm,html,js,json,json5,jsx,mjs,mts,pu,puml,rb,ts,tsx,vue,yaml,yml}] indent_size = 2 indent_style = space diff --git a/.eslintignore b/.eslintignore index 46f12d401..7ab9bc170 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ -# Project-specific settings +# Project-specific settings (head) # Generated by @willbooster/willboosterify @@ -10,20 +10,18 @@ android/ ios/ no-format/ test-fixtures/ -*.config.js +*.config.*js *.d.ts -*.min.js +*.min.*js .yarn/ .pnp.js - dist.zip .devcontainer/ dist/ temp/ Icon[ ] -*.sqlite3 -*.sqlite3-journal +!.keep # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows @@ -252,12 +250,6 @@ fabric.properties .history .ionide -# Support for Project snippet scope -.vscode/*.code-snippets - -# Ignore code-workspaces -*.code-workspace - # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode # Created by https://www.toptal.com/developers/gitignore/api/emacs @@ -507,3 +499,5 @@ dist .svelte-kit # End of https://www.toptal.com/developers/gitignore/api/node + +# Project-specific settings (tail) diff --git a/.gitattributes b/.gitattributes index e60dc4f65..2d4b19fd8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,6 +4,7 @@ *.cjs text eol=lf *.cpp text eol=lf +*.cts text eol=lf *.dart text eol=lf *.htm text eol=lf *.html text eol=lf @@ -12,6 +13,7 @@ *.json5 text eol=lf *.jsx text eol=lf *.mjs text eol=lf +*.mts text eol=lf *.pu text eol=lf *.puml text eol=lf *.rb text eol=lf diff --git a/.github/workflows/add-issue-to-project.yml b/.github/workflows/add-issue-to-project.yml new file mode 100644 index 000000000..aba5e7c48 --- /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: WillBooster/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/close-comment.yml b/.github/workflows/close-comment.yml new file mode 100644 index 000000000..5b6487b6a --- /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: WillBooster/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 000000000..1aed4aa02 --- /dev/null +++ b/.github/workflows/notify-ready.yml @@ -0,0 +1,10 @@ +name: Notify ready +on: + issues: + types: + - labeled +jobs: + notify-ready: + uses: WillBooster/reusable-workflows/.github/workflows/notify-ready.yml@main + secrets: + DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL_FOR_READY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51e4ffacd..6ca9c125c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,11 +2,14 @@ name: Release on: schedule: - cron: 0 5 * * 0 +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false jobs: release: uses: WillBooster/reusable-workflows/.github/workflows/release.yml@main with: - dot_env_path: .env + github_hosted_runner: true secrets: DOT_ENV: ${{ secrets.DOT_ENV }} GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77303cf68..1a7a7d95e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,16 +1,24 @@ name: Test on: pull_request: + paths-ignore: + - '**.md' + - '**/docs/**' push: branches: - main - wbfy - renovate/** + paths-ignore: + - '**.md' + - '**/docs/**' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: test: uses: WillBooster/reusable-workflows/.github/workflows/test.yml@main with: - dot_env_path: .env + github_hosted_runner: true secrets: - DOT_ENV: ${{ secrets.DOT_ENV }} GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} diff --git a/.github/workflows/wbfy-merge.yml b/.github/workflows/wbfy-merge.yml index 50ac7ebff..8bd3b766f 100644 --- a/.github/workflows/wbfy-merge.yml +++ b/.github/workflows/wbfy-merge.yml @@ -2,9 +2,11 @@ name: Merge wbfy on: workflow_dispatch: schedule: - - cron: 8 15 * * * + - cron: 9 16 * * * jobs: wbfy-merge: uses: WillBooster/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 index 041f15c4d..a1b123edd 100644 --- a/.github/workflows/wbfy.yml +++ b/.github/workflows/wbfy.yml @@ -2,9 +2,11 @@ name: Willboosterify on: workflow_dispatch: schedule: - - cron: 15 13 * * * + - cron: 7 14 * * * jobs: wbfy: uses: WillBooster/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 f7a127437..ecbf7a54c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Project-specific settings +# Project-specific settings (head) dist.zip @@ -8,8 +8,7 @@ dist.zip dist/ temp/ Icon[ ] -*.sqlite3 -*.sqlite3-journal +!.keep # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows @@ -238,12 +237,6 @@ fabric.properties .history .ionide -# Support for Project snippet scope -.vscode/*.code-snippets - -# Ignore code-workspaces -*.code-workspace - # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode # Created by https://www.toptal.com/developers/gitignore/api/emacs @@ -494,3 +487,5 @@ dist .svelte-kit # End of https://www.toptal.com/developers/gitignore/api/node + +# Project-specific settings (tail) diff --git a/.husky/post-merge b/.husky/post-merge index bd4977192..6eaba37f2 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,4 +1,14 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn +changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" + +run_if_changed() { + if echo "$changed_files" | grep --quiet -E "$1"; then + eval "$2" + fi +} + +run_if_changed "\..+-version" "asdf plugin update --all" +run_if_changed "\..+-version" "asdf install" +run_if_changed "package\.json" "yarn" diff --git a/.husky/pre-commit b/.husky/pre-commit index 5a182ef10..1df1cdeab 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn lint-staged +node node_modules/.bin/lint-staged diff --git a/.husky/pre-push b/.husky/pre-push index bc073f5a0..ee71011ee 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn typecheck +node node_modules/.bin/tsc --noEmit --Pretty diff --git a/.idea/watcherTasks.xml b/.idea/watcherTasks.xml index 0bdd1ac05..71a277458 100644 --- a/.idea/watcherTasks.xml +++ b/.idea/watcherTasks.xml @@ -2,7 +2,7 @@ - - - - - -