Skip to content

Conversation

@CommanderStorm
Copy link
Member

I consistently have the problem to get my ABC into check.
I would like to have an autofix for this, but pre-commit does not support running this, so I added it to our autofix config.

Copilot AI review requested due to automatic review settings January 14, 2026 13:57
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 adds automated cargo-sort formatting for Cargo.toml files by integrating it into the CI workflow and creating a new autofix job that runs on pull requests.

Changes:

  • Replaced cargo-binstall with cargo-sort in the CI workflow tool installation
  • Added a new fmt-toml job to the autofix workflow that automatically formats Cargo.toml files
  • Updated the autofix workflow to trigger on PR opened, synchronize, and reopened events

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml Replaced cargo-binstall with cargo-sort in tool installation
.github/workflows/autofix.yml Added fmt-toml job for automatic Cargo.toml formatting and updated trigger conditions

Copy link
Member

@nyurik nyurik left a comment

Choose a reason for hiding this comment

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

approving, but plz review the comment first

- uses: taiki-e/install-action@763e3324d4fd026c9bd284c504378585777a87d5 # v2.62.57
# TODO: add cargo-sort once https://github.com/taiki-e/install-action/pull/997 is resolved
with: { tool: 'just,cargo-binstall' }
with: { tool: 'just,cargo-sort' }
Copy link
Member

Choose a reason for hiding this comment

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

did you mean to remove cargo-sort instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

fair, does not make sense to have this in two places

@CommanderStorm CommanderStorm requested a review from nyurik January 16, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants