From 50ff73ce44f50857fb6875f247afaccf97fbbadf Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Mon, 31 Mar 2025 23:23:07 -0700 Subject: [PATCH] Only use pre-commit ci autofix on automated PRs --- .github/workflows/update-all-review-data.yml | 2 ++ .github/workflows/update-contribs-reviews.yml | 2 ++ .pre-commit-config.yaml | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-all-review-data.yml b/.github/workflows/update-all-review-data.yml index cc3d8c69..9fdd4399 100644 --- a/.github/workflows/update-all-review-data.yml +++ b/.github/workflows/update-all-review-data.yml @@ -37,6 +37,8 @@ jobs: commit-message: "Update: Contributor & review file update" delete-branch: true title: Update contributor and review data + labels: | + pre-commit.ci autofix env: # Custom token needed to trigger PR checks, as GITHUB_TOKEN won't # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs diff --git a/.github/workflows/update-contribs-reviews.yml b/.github/workflows/update-contribs-reviews.yml index b6e34828..6957bbbb 100644 --- a/.github/workflows/update-contribs-reviews.yml +++ b/.github/workflows/update-contribs-reviews.yml @@ -42,6 +42,8 @@ jobs: commit-message: "Update: Contributor & review file update" delete-branch: true title: Update contributor and review data + labels: | + pre-commit.ci autofix env: # Custom token needed to trigger PR checks, as GITHUB_TOKEN won't # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c401e33a..af02f085 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ # - Register git hooks: pre-commit install --install-hooks ci: - autofix_prs: true + autofix_prs: false #skip: [flake8, end-of-file-fixer] autofix_commit_msg: | '[pre-commit.ci 🤖] Apply code format tools to PR'