Skip to content

Switch to autofix.ci#731

Merged
MattyTheHacker merged 4 commits intomainfrom
matt/switch-to-autofix.ci
Mar 15, 2026
Merged

Switch to autofix.ci#731
MattyTheHacker merged 4 commits intomainfrom
matt/switch-to-autofix.ci

Conversation

@CarrotManMatt
Copy link
Member

https://autofix.ci is an alternative to the pre-commit.ci/lite action, which allows for commiting pre-commit auto-fixes, even if the PR was made by a bot. This means that when renovate opens a dependency upgrade and the tsvikas/sync-with-uv pre-commit hook syncs the update between the pre-commit config & the lock file, this edit can be commited automatically.

@CarrotManMatt CarrotManMatt self-assigned this Mar 10, 2026
@CarrotManMatt CarrotManMatt added the deployment Changes to the deployment or CI/CD configuration label Mar 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the pre-commit-ci/lite-action with autofix-ci/action to enable automatic pre-commit fixes on bot-authored PRs (e.g., from Renovate). The pre-commit job logic is extracted into a reusable workflow that can be called both standalone (on PRs, with autofix) and from the main CI workflow (without autofix).

Changes:

  • Extracted the pre-commit job into a new reusable workflow (.github/workflows/autofix-pre-commit.yaml) triggered on pull_request and workflow_call, using autofix-ci/action@v1.3.3 instead of pre-commit-ci/lite-action.
  • Updated .github/workflows/check-build-deploy.yaml to call the reusable workflow with skip-autofix: true, added top-level permissions, and removed contents: read from the build-and-publish job.
  • Added autofix-ci bot email addresses to gitIgnoredAuthors in Renovate config to prevent Renovate from treating autofix commits as manual changes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/autofix-pre-commit.yaml New reusable workflow with pre-commit checks and autofix-ci action
.github/workflows/check-build-deploy.yaml Replaced inline pre-commit job with reusable workflow call; adjusted permissions
.github/renovate.json Added autofix-ci bot emails to gitIgnoredAuthors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MattyTheHacker MattyTheHacker merged commit c63d731 into main Mar 15, 2026
17 checks passed
@MattyTheHacker MattyTheHacker deleted the matt/switch-to-autofix.ci branch March 15, 2026 00:46
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deployment Changes to the deployment or CI/CD configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants