diff --git a/.github/workflows/add-to-docs-project.yml b/.github/workflows/add-to-docs-project.yml index c66ded9cc..85879f973 100644 --- a/.github/workflows/add-to-docs-project.yml +++ b/.github/workflows/add-to-docs-project.yml @@ -7,7 +7,7 @@ on: jobs: main: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} permissions: contents: read id-token: write diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 692ce737f..e2cf8aeb8 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,7 +7,7 @@ on: jobs: main: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} permissions: contents: read id-token: write diff --git a/.github/workflows/dictionaries.yml b/.github/workflows/dictionaries.yml index 1f13ed695..38e4453ea 100644 --- a/.github/workflows/dictionaries.yml +++ b/.github/workflows/dictionaries.yml @@ -9,7 +9,7 @@ on: type: boolean jobs: main: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} container: image: bitnami/jsonnet@sha256:3d8b084da1b74f5d38bc35e1ebf02f4a57c0410ec59d4edbc25dd2fec5f5541c runs-on: ubuntu-latest diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 8a59df587..23de85889 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -11,7 +11,7 @@ permissions: jobs: build: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 0893f5467..9a1a3f922 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -9,7 +9,7 @@ on: type: boolean jobs: prettier: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} runs-on: ubuntu-latest steps: - uses: grafana/writers-toolkit/prettier@main diff --git a/.github/workflows/validate-documentation.yml b/.github/workflows/validate-documentation.yml index b923c7365..f9761b70a 100644 --- a/.github/workflows/validate-documentation.yml +++ b/.github/workflows/validate-documentation.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: jobs: doc-validator: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} runs-on: ubuntu-latest container: image: grafana/doc-validator:v4.0.0 @@ -27,7 +27,7 @@ jobs: env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} prettier: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -59,7 +59,7 @@ jobs: env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} test: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -83,7 +83,7 @@ jobs: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} report-readability: - if: ${{ github.repository == 'grafana/writers-toolkit' }} + if: ${{ github.repository == 'grafana/writers-toolkit' }} name: Report readability runs-on: ubuntu-latest steps: diff --git a/add-to-docs-project/index.mts b/add-to-docs-project/index.mts index 6eb3b6713..d8c7de557 100644 --- a/add-to-docs-project/index.mts +++ b/add-to-docs-project/index.mts @@ -10,7 +10,7 @@ const PROJECT_ID = "PVT_kwDOAG3Mbc027w"; const ISSUES_QUERY = fs.readFileSync("issues.graphql", "utf8"); const ADD_TO_PROJECT_MUTATION = fs.readFileSync( "add-to-project.graphql", - "utf8" + "utf8", ); async function addIssuesToProject(): Promise> { @@ -26,14 +26,14 @@ async function addIssuesToProject(): Promise> { for (const issue of issues) { console.log( - `Adding issue ${issue.title} (${issue.url}) to the Docs project.` + `Adding issue ${issue.title} (${issue.url}) to the Docs project.`, ); added.push( // https://api.slack.com/reference/surfaces/formatting#escaping `${issue.url}|${issue.title}` .replaceAll("&", "&") .replaceAll("<", "<") - .replaceAll(">", ">") + .replaceAll(">", ">"), ); await octokit.graphql(ADD_TO_PROJECT_MUTATION, { @@ -52,5 +52,5 @@ async function addIssuesToProject(): Promise> { const added = await addIssuesToProject(); core.setOutput( "added", - added.map((issue) => `- <${issue}>`.replaceAll('"', '\\"')).join("\\n") + added.map((issue) => `- <${issue}>`.replaceAll('"', '\\"')).join("\\n"), ); diff --git a/add-to-docs-project/tsconfig.json b/add-to-docs-project/tsconfig.json index 97ef06f7b..124237cb2 100644 --- a/add-to-docs-project/tsconfig.json +++ b/add-to-docs-project/tsconfig.json @@ -11,7 +11,7 @@ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ @@ -25,9 +25,9 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "nodenext", /* Specify what module code is generated. */ + "module": "nodenext" /* Specify what module code is generated. */, // "rootDir": "./", /* Specify the root folder within your source files. */ - "moduleResolution": "nodenext", /* Specify how TypeScript looks up a file from a given module specifier. */ + "moduleResolution": "nodenext" /* 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. */ @@ -76,12 +76,12 @@ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ + "strict": true /* Enable all strict type-checking options. */, // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ @@ -103,6 +103,6 @@ /* Completeness */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ } }