Skip to content

chore: apply Prettier formatting to all files - #1027

Merged
ovflowd merged 1 commit into
mainfrom
fix/prettier-format-all
Sep 9, 2026
Merged

chore: apply Prettier formatting to all files#1027
ovflowd merged 1 commit into
mainfrom
fix/prettier-format-all

Conversation

@ovflowd

@ovflowd ovflowd commented Sep 9, 2026

Copy link
Copy Markdown
Member

The nightly update-links workflow runs node --run format before committing the directory cache, and the Prettier format script covers **/*.yml. Two files weren't aligned with Prettier's output, so on every run git-auto-commit-action picked them up and tried to push a diff that included .github/workflows/update-links.yml — which GitHub blocks without workflows write permission.

Pre-applying the Prettier output here means the format step produces no further changes and the auto-commit only ever touches the actual cache files it's meant to update.

Refs #1020

Running `node --run format` as part of the nightly update-links workflow
produces a dirty diff in `.github/workflows/update-links.yml` (cron quote
style) and `scripts/constants.mjs` (array trailing comma). Pre-applying
Prettier here means the format step in the nightly workflow produces no
further changes and `git-auto-commit-action` has nothing unexpected to push.

Refs #1020

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LXvbysVPDnes541gBuD1ia
@ovflowd
ovflowd requested a review from a team as a code owner September 9, 2026 12:58

@MattIPv4 MattIPv4 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.

We should have a CI check for formatting

@ovflowd
ovflowd merged commit 164d0db into main Sep 9, 2026
8 checks passed
@ovflowd
ovflowd deleted the fix/prettier-format-all branch September 9, 2026 13:01
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