Skip to content

ci: Repair pre-commit prettier hook and pin workflow actions#453

Open
bakerboy448 wants to merge 3 commits into
Servarr:masterfrom
bakerboy448:ci/fix-precommit-pin-actions
Open

ci: Repair pre-commit prettier hook and pin workflow actions#453
bakerboy448 wants to merge 3 commits into
Servarr:masterfrom
bakerboy448:ci/fix-precommit-pin-actions

Conversation

@bakerboy448

Copy link
Copy Markdown
Contributor

Problem

The prettier pre-commit hook points at pre-commit/mirrors-prettier, which is archived and whose last release is an alpha (v4.0.0-alpha.8). That makes the hook brittle/broken to install and impossible for Dependabot/Renovate to advance.

Changes

  • Fix the hook: migrate to the maintained rbubley/mirrors-prettier@v3.8.4. Verified locally: pre-commit run prettier --all-files passes and reformats nothing (no churn).
  • SHA-pin all GitHub Actions (with # vX.Y.Z comments) — supply-chain best practice; Dependabot continues to bump the SHAs.
  • Currency: actions/checkout v5→v6.0.3, actions/setup-node v5→v6.4.0.

No workflow logic, triggers, or steps changed. Pure CI maintenance — safe for a reviewer to merge as-is.

bakerboy448 and others added 3 commits June 21, 2026 00:52
The prettier hook used the archived pre-commit/mirrors-prettier (last release
an alpha, v4.0.0-alpha.8); migrate to the maintained rbubley/mirrors-prettier
v3.8.4 so the hook installs and runs (verified: prettier passes, no reformat).

Also SHA-pin all GitHub Actions with version comments (supply-chain best
practice; Dependabot keeps the SHAs current) and bump checkout v5->v6.0.3 and
setup-node v5->v6.4.0.
…ommit hook

- markdownlint --fix: normalize headings (MD026 trailing ?), trailing
  newlines, and other auto-fixable rules across lidarr/, prowlarr/,
  radarr/, readarr/, sonarr/ docs and docker-guide.md
- MD040: add `text` language specifier to bare fenced code blocks in
  lidarr/tips-and-tricks.md and lidarr/importing-existing-library.md
- typos: fix `seperated`→`separated` (docker-guide.md), `succes`→
  `success rate` (lidarr/import-troubleshooting.md), complete truncated
  words `thi`→`this page` and reword `mis-linked`→`incorrectly linked`
  (lidarr/importing-existing-library.md)

These are the changes the repaired pre-commit hook now enforces; the
source files must conform so the hook exits 0 rather than "files were
modified by this hook".
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.

1 participant