Skip to content

ci: exclude release-please CHANGELOG.md from prettier check - #132

Merged
rubenhensen merged 1 commit into
mainfrom
ci/prettier-ignore-changelog
Jul 23, 2026
Merged

ci: exclude release-please CHANGELOG.md from prettier check#132
rubenhensen merged 1 commit into
mainfrom
ci/prettier-ignore-changelog

Conversation

@dobby-coder

@dobby-coder dobby-coder Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What

Add CHANGELOG.md to .prettierignore so the release-please changelog is no longer prettier-checked.

Why

The Lint job (prettier --check . && eslint .) is failing on the release PR #93 (chore(main): release 1.4.0). The CHANGELOG.md that release-please regenerates uses asterisk (*) list bullets with blank lines around each list, and prettier rewrites those to hyphen bullets with no surrounding blank lines. Every release PR hits this.

The check was introduced in #69, which reformatted the existing changelog to prettier's style but didn't exclude the file, so the conflict surfaces the next time release-please writes to it — now, for 1.4.0.

CHANGELOG.md is generated and owned by release-please, so it should not be subject to the prettier check. Once this merges, release-please rebuilds #93's branch on top of main and its Lint job goes green.

Verification

Dropped the failing release-please CHANGELOG.md in place and confirmed prettier --check skips it, and npm run lint passes end to end.

Unblocks #93.

release-please generates CHANGELOG.md with asterisk bullets and blank lines
around lists, a Markdown style prettier rewrites. Since #69 enforced
`prettier --check .` in the Lint job without excluding the file, every
release PR fails lint on the regenerated CHANGELOG (e.g. #93 for 1.4.0).

CHANGELOG.md is owned by release-please, so exclude it from prettier.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dobby-coder
dobby-coder Bot requested a review from rubenhensen July 23, 2026 12:04

@dobby-coder dobby-coder Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

VERDICT: approve

Rules Dobby 2 — sign-off (cycle 1)

Rule compliance + review check on the .prettierignore fix. No findings.

  • Conventional-commit PR title (ci:) — valid.
  • Touches only .prettierignore, not .github/workflows/ — correctly stays within App permissions.
  • PR body prose and the inline comment are plain and honest; the comment documents a genuinely non-obvious ignore entry.
  • No security advisory referenced — no embargo concern.

Review Dobby 2 empirically verified the fix (prettier --check skips the release-please CHANGELOG.md; npm run lint passes). Clean — flipping to ready.

@dobby-coder
dobby-coder Bot marked this pull request as ready for review July 23, 2026 12:08
@rubenhensen
rubenhensen merged commit e8ebab4 into main Jul 23, 2026
16 checks passed
@rubenhensen
rubenhensen deleted the ci/prettier-ignore-changelog branch July 23, 2026 12:11
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