From 4d9ce14da5393cd7a957034a3088fa171c18d8f3 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Mon, 15 Sep 2025 00:10:34 +0900 Subject: [PATCH 1/2] chore(ci): add autofix.ci workflow for automatic code fixes Add autofix.ci GitHub workflow to automatically fix linting and formatting issues in pull requests. This includes: - Biome code formatting and linting fixes - Oxlint additional linting fixes - Website client/server linting fixes - Browser extension linting fixes The workflow runs on pull requests and pushes to main branch, helping maintain code quality standards automatically. --- .github/workflows/autofix.yml | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 000000000..c58aefbfd --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,55 @@ +name: autofix.ci + +on: + pull_request: + push: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + autofix: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .tool-versions + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run biome with auto-fix + run: npm run lint-biome + continue-on-error: true + + - name: Run oxlint with auto-fix + run: npm run lint-oxlint + continue-on-error: true + + - name: Fix website client linting + working-directory: website/client + run: | + npm ci + npm run lint + continue-on-error: true + + - name: Fix website server linting + working-directory: website/server + run: | + npm ci + npm run lint + continue-on-error: true + + - name: Fix browser extension linting + working-directory: browser + run: | + npm ci + npm run lint + continue-on-error: true + + - uses: autofix-ci/action@635ffb246a1a6e4e4066a21a6b7e03c97c2ba9cf \ No newline at end of file From 56a556113a70708debb4a8652090dce5e93df33c Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Mon, 15 Sep 2025 00:12:26 +0900 Subject: [PATCH 2/2] chore(ci): pin autofix.ci action versions with ratchet Update autofix.yml workflow to use pinned action versions: - Pin actions/checkout@v5 with commit hash - Pin actions/setup-node@v4 with commit hash - Pin autofix-ci/action@v1.3.2 with commit hash - Minor formatting improvements This improves security by using specific commit hashes instead of mutable tags. --- .github/workflows/autofix.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index c58aefbfd..783456d1e 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -3,7 +3,7 @@ name: autofix.ci on: pull_request: push: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -12,10 +12,10 @@ jobs: autofix: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4 with: node-version-file: .tool-versions cache: npm @@ -52,4 +52,4 @@ jobs: npm run lint continue-on-error: true - - uses: autofix-ci/action@635ffb246a1a6e4e4066a21a6b7e03c97c2ba9cf \ No newline at end of file + - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # ratchet:autofix-ci/action@v1.3.2