From 47eea8cd4c68f5e31aeb557ec4a00839d44fc69d Mon Sep 17 00:00:00 2001 From: snomiao Date: Thu, 19 Feb 2026 05:24:55 +0000 Subject: [PATCH 1/2] ci: add auto lint/format fix and commit to test workflow --- .github/workflows/test.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 44909106..71e9cb29 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,8 +5,10 @@ on: branches: - main jobs: - run_comfy_pr: + comfy_pr_test: runs-on: ubuntu-latest + permissions: + contents: write timeout-minutes: 10 steps: - uses: actions/checkout@v4 @@ -30,6 +32,17 @@ jobs: # setup comfy-pr # Run Comfy-PR Tests - run: bun i + - run: bunx oxlint --fix + - run: bunx oxfmt --write + - name: Commit lint/format fixes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + if ! git diff --quiet; then + git add -A + git commit -m "style: auto-fix lint and formatting" + git push + fi - run: bun test timeout-minutes: 8 env: From 7a98c873672c9a09629f32e867611c1fabdebe4e Mon Sep 17 00:00:00 2001 From: snomiao Date: Thu, 19 Feb 2026 05:29:30 +0000 Subject: [PATCH 2/2] fix: checkout PR branch ref to allow git push from CI --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 71e9cb29..2526e214 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,6 +12,8 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} # setup comfy-cli - uses: actions/setup-python@v5 with: