[PR #7483] [MERGED] docs(workflow): compile the changelog at release time instead of in every PR #7756

Closed
opened 2026-10-24 04:07:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7483
Author: @SpicyMarinara
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara

Base: staging ← Head: chore/changelog-at-release


📝 Commits (3)

  • 844add5 docs(workflow): compile the changelog at release time instead of in every PR
  • ef32517 docs(workflow): fail the changelog check on any CHANGELOG.md change; point AGENTS.md at CONTRIBUTING
  • f3ae36c docs(workflow): keep changelog edits allowed in release PRs

📊 Changes

6 files changed (+18 additions, -22 deletions)

View changed files

📝 .coderabbit.yaml (+4 -7)
📝 .github/agents/chai-workflow.md (+5 -5)
📝 .github/pull_request_template.md (+1 -1)
📝 AGENTS.md (+2 -3)
📝 CONTRIBUTING.md (+5 -5)
📝 docs/development/game-rulesets-and-sheets-implementation.md (+1 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7482

Why this change

Every PR added a line under ## [Unreleased] in CHANGELOG.md. So every merge to staging made the other open PRs conflict on that file. Resolving the conflict meant pushing a merge commit, which reran all of the PR's checks: about 15 minutes of CI and another CodeRabbit review each time. With several PRs open, they could only land one per CI cycle.

What changed

  • You no longer add a CHANGELOG.md entry in feature or fix PRs. The changelog is compiled before each main release from the PRs merged to staging since the last tag. The PR description's "What changed" is what the release notes are written from.
  • AGENTS.md, .github/agents/chai-workflow.md and CONTRIBUTING.md drop the per-PR changelog duty. They now ask for "What changed" to be written last, from the final diff, with anything that stops working first.
  • The CONTRIBUTING.md release flow, step 4, gives the commands that list merged PRs since the last tag (git log --first-parent … <last tag>..origin/staging, then gh pr view N) and explains how to turn them into entries. Entries still under [Unreleased] move into the release heading.
  • .coderabbit.yaml:
    • the @coderabbitai run changelog recipe is removed;
    • the "Changelog entry" pre-merge check is now "No changelog edits outside releases", which warns when a PR that doesn't bump the root version edits CHANGELOG.md;
    • the CHANGELOG.md path rule says only release PRs edit the file.
  • The PR template's docs checkbox and the game-rulesets slice plan no longer mention the changelog.
  • Unchanged: the existing [Unreleased] entries, pnpm release:notes and the release workflow, which still publish from CHANGELOG.md.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Docs and config only; no code changes.
  • .coderabbit.yaml parses (yaml.safe_load).
  • Prettier: the four Markdown files it lists were already unformatted on staging, and the repo's format:check covers only packages/**.
  • Manually verify:
    • CodeRabbit's pre-merge check on a later PR that edits CHANGELOG.md shows the new warning;
    • @coderabbitai run changelog no longer appears among the recipes.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

docs/development/game-rulesets-and-sheets-implementation.md is translated on docs-i18n (all 10 packs). Its one change here, dropping "a CHANGELOG.md [Unreleased] entry," from the "Slices and exit evidence" paragraph, is part of the docs-i18n sync batch running now and will be linked here when that PR opens.

Summary by CodeRabbit

  • Documentation
    • Updated contribution guidance so pull requests describe all user-visible changes based on the final diff, with breaking changes called out first.
    • Clarified that changelog entries are compiled from merged pull requests before a release; only release pull requests update the changelog.
    • Updated review guidance and checklists to reflect the revised pull request and release-note process.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7483 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/changelog-at-release` --- ### 📝 Commits (3) - [`844add5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/844add57d542ea108db30dbe4ebe7c5c6d0f3869) docs(workflow): compile the changelog at release time instead of in every PR - [`ef32517`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ef325170fc7afc1a424ba5622008de7debff7669) docs(workflow): fail the changelog check on any CHANGELOG.md change; point AGENTS.md at CONTRIBUTING - [`f3ae36c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f3ae36c14bb962c634d9229db1cbff745015ab86) docs(workflow): keep changelog edits allowed in release PRs ### 📊 Changes **6 files changed** (+18 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.coderabbit.yaml` (+4 -7) 📝 `.github/agents/chai-workflow.md` (+5 -5) 📝 `.github/pull_request_template.md` (+1 -1) 📝 `AGENTS.md` (+2 -3) 📝 `CONTRIBUTING.md` (+5 -5) 📝 `docs/development/game-rulesets-and-sheets-implementation.md` (+1 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7482 ## Why this change Every PR added a line under `## [Unreleased]` in `CHANGELOG.md`. So every merge to `staging` made the other open PRs conflict on that file. Resolving the conflict meant pushing a merge commit, which reran all of the PR's checks: about 15 minutes of CI and another CodeRabbit review each time. With several PRs open, they could only land one per CI cycle. ## What changed - **You no longer add a `CHANGELOG.md` entry in feature or fix PRs.** The changelog is compiled before each main release from the PRs merged to `staging` since the last tag. The PR description's "What changed" is what the release notes are written from. - `AGENTS.md`, `.github/agents/chai-workflow.md` and `CONTRIBUTING.md` drop the per-PR changelog duty. They now ask for "What changed" to be written last, from the final diff, with anything that stops working first. - The `CONTRIBUTING.md` release flow, step 4, gives the commands that list merged PRs since the last tag (`git log --first-parent … <last tag>..origin/staging`, then `gh pr view N`) and explains how to turn them into entries. Entries still under `[Unreleased]` move into the release heading. - `.coderabbit.yaml`: - the `@coderabbitai run changelog` recipe is removed; - the "Changelog entry" pre-merge check is now "No changelog edits outside releases", which warns when a PR that doesn't bump the root version edits `CHANGELOG.md`; - the `CHANGELOG.md` path rule says only release PRs edit the file. - The PR template's docs checkbox and the game-rulesets slice plan no longer mention the changelog. - Unchanged: the existing `[Unreleased]` entries, `pnpm release:notes` and the release workflow, which still publish from `CHANGELOG.md`. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Docs and config only; no code changes. - `.coderabbit.yaml` parses (`yaml.safe_load`). - Prettier: the four Markdown files it lists were already unformatted on `staging`, and the repo's `format:check` covers only `packages/**`. - Manually verify: - CodeRabbit's pre-merge check on a later PR that edits `CHANGELOG.md` shows the new warning; - `@coderabbitai run changelog` no longer appears among the recipes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) `docs/development/game-rulesets-and-sheets-implementation.md` is translated on `docs-i18n` (all 10 packs). Its one change here, dropping "a `CHANGELOG.md` `[Unreleased]` entry," from the "Slices and exit evidence" paragraph, is part of the docs-i18n sync batch running now and will be linked here when that PR opens. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated contribution guidance so pull requests describe all user-visible changes based on the final diff, with breaking changes called out first. * Clarified that changelog entries are compiled from merged pull requests before a release; only release pull requests update the changelog. * Updated review guidance and checklists to reflect the revised pull request and release-note process. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:07:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7756
No description provided.