From e73d693ad77115a6f162e18492598fc270e10340 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:18:13 +0900 Subject: [PATCH 1/4] ci(.github/workflows/autofix.yml): use autofix.ci --- .github/workflows/autofix.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 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 00000000..7fd56e80 --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,40 @@ +# name must be autofix.ci for security reasons +# ref: https://autofix.ci/security +name: autofix.ci + +on: + pull_request: + branches: + - main + workflow_dispatch: + +permissions: {} + +defaults: + run: + shell: bash + +jobs: + autofix: + runs-on: ubuntu-24.04 + timeout-minutes: 5 + permissions: + contents: read # for checkout + + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Install mise + uses: jdx/mise-action@5bb8f8c1911837cf42064e6490e7634fc842ee7e # v2.1.8 + with: + version: 2024.12.8 + cache_save: ${{ github.ref_name == 'main' }} + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Run autofix + run: mise run check + + - name: autofix.ci + uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1 From f705662fa3eb97ed1a36f11bd89bf6ac0ee8bc52 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:18:52 +0900 Subject: [PATCH 2/4] chore(.markdownlint-cli2.jsonc): break format for debug --- .markdownlint-cli2.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index 63404700..7509c56b 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -4,7 +4,7 @@ "globs": ["**/*.md"], "gitignore": true, "config": { - // ignore line length because I don't want to wrap my text + // ignore line length because I don't want to wrap my text "line-length": false } } From 7949945ff397e6249c0d1eb047e2e1397993d989 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:23:05 +0900 Subject: [PATCH 3/4] ci(.github/workflows/autofix.yml): use commitlint compatible commit message --- .github/workflows/autofix.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 7fd56e80..caff9fd4 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -38,3 +38,5 @@ jobs: - name: autofix.ci uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1 + with: + commit-message: 'ci: apply automated fixes' From 6021645f8f0d6a4fe107747af390f659e38df904 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 02:23:40 +0000 Subject: [PATCH 4/4] ci: apply automated fixes --- .markdownlint-cli2.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index 7509c56b..63404700 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -4,7 +4,7 @@ "globs": ["**/*.md"], "gitignore": true, "config": { - // ignore line length because I don't want to wrap my text + // ignore line length because I don't want to wrap my text "line-length": false } }