From bd2f03e829444555800b3c26c6708ef22e569db2 Mon Sep 17 00:00:00 2001 From: whilefoo Date: Mon, 25 Nov 2024 22:46:36 +0100 Subject: [PATCH] fix: formatting and deploy --- .github/workflows/compute.yml | 1 + .github/workflows/{cspell.yml => formatting-checks.yml} | 0 .github/workflows/update-configuration.yml | 2 +- .prettierignore | 2 ++ README.md | 2 +- eslint.config.mjs | 2 +- tests/__mocks__/seed.json | 2 +- tsconfig.json | 2 +- 8 files changed, 8 insertions(+), 5 deletions(-) rename .github/workflows/{cspell.yml => formatting-checks.yml} (100%) create mode 100644 .prettierignore diff --git a/.github/workflows/compute.yml b/.github/workflows/compute.yml index f19f0f63..e2a7b9e3 100644 --- a/.github/workflows/compute.yml +++ b/.github/workflows/compute.yml @@ -35,5 +35,6 @@ jobs: - name: Execute directive uses: ./ env: + KERNEL_PUBLIC_KEY: ${{ secrets.KERNEL_PUBLIC_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PLUGIN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/cspell.yml b/.github/workflows/formatting-checks.yml similarity index 100% rename from .github/workflows/cspell.yml rename to .github/workflows/formatting-checks.yml diff --git a/.github/workflows/update-configuration.yml b/.github/workflows/update-configuration.yml index 56ca8eb6..bf8b240b 100644 --- a/.github/workflows/update-configuration.yml +++ b/.github/workflows/update-configuration.yml @@ -15,7 +15,7 @@ jobs: with: treatAsEsm: true sourcemap: false - pluginEntry: '${{ github.workspace }}/src/action.ts' + pluginEntry: "${{ github.workspace }}/src/action.ts" env: APP_ID: ${{ secrets.APP_ID }} APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..3b8b6026 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +dist/ +coverage/ \ No newline at end of file diff --git a/README.md b/README.md index 44e36dc3..85d4d300 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ on the association of the pull-request author. mergeTimeout: collaborator: "3.5 days" # defaults to 3.5 days contributor: "7 days" # defaults to 7 days - repos: + repos: monitor: ["ubiquibot/automated-merging"] ignore: ["ubiquibot/automated-merging"] allowedReviewerRoles: ["COLLABORATOR", "MEMBER", "OWNER"] diff --git a/eslint.config.mjs b/eslint.config.mjs index e53d2639..9fc2e844 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -9,7 +9,7 @@ export default tsEslint.config({ "@typescript-eslint": tsEslint.plugin, "check-file": checkFile, }, - ignores: [".github/knip.ts"], + ignores: [".github/knip.ts", ".wrangler/**/*.ts", ".wrangler/**/*.js", "dist/**", "eslint.config.mjs"], extends: [eslint.configs.recommended, ...tsEslint.configs.recommended, sonarjs.configs.recommended], languageOptions: { parser: tsEslint.parser, diff --git a/tests/__mocks__/seed.json b/tests/__mocks__/seed.json index a7ed423e..f9a5d3e6 100644 --- a/tests/__mocks__/seed.json +++ b/tests/__mocks__/seed.json @@ -37,4 +37,4 @@ "author_association": "NONE" } ] -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 2016f0e7..d643f28f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,7 +24,7 @@ /* Modules */ "module": "ES2022" /* Specify what module code is generated. */, // "rootDir": "./", /* Specify the root folder within your source files. */ - "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */, // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */