Skip to content

Switch to scalafix, apply fmt/lint fixes automatically#163

Open
giarc3 wants to merge 3 commits into
mainfrom
scala-ci-autofix
Open

Switch to scalafix, apply fmt/lint fixes automatically#163
giarc3 wants to merge 3 commits into
mainfrom
scala-ci-autofix

Conversation

@giarc3

@giarc3 giarc3 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Uses our WORKFLOW_PAT to automatically commit scalafmt and scalafix changes to the branch, then CI will re-run on that new commit. If it can't make the fixes, it will fall back to doing a check like before

@giarc3 giarc3 requested a review from a team as a code owner June 26, 2026 16:19
@giarc3 giarc3 requested review from skeet70 and removed request for a team June 26, 2026 16:19
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

File Coverage Lines
All files 0% 0%

Minimum allowed coverage is 24%

Generated by 🐒 cobertura-action against 4a90396

@coltfred coltfred left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Couple small things.

with:
path: ${{ env.UNDER_TEST_FOLDER }}
# When pushable, check out the PR branch tip (not the merge ref) with the PAT so the auto-fix commit can be pushed back.
ref: ${{ steps.push_mode.outputs.can_push == 'true' && github.head_ref || '' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

empty string ref will probably error if it ever happens. Should we just error here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't think that errors, I think that falls back to default behavior of the merge ref

Comment thread .github/workflows/scala-ci.yaml Outdated
Comment thread .github/workflows/scala-ci.yaml Outdated
Comment thread .github/workflows/scala-ci.yaml Outdated
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.

3 participants