Visitar URL original
Run Apply Before Removing Branch Protection and End Trailing Definitions Where the Parser Does by ptr727 · Pull Request #4086 · ptr727/ProjectTemplate · GitHub
Skip to content

Run Apply Before Removing Branch Protection and End Trailing Definitions Where the Parser Does - #4086

Merged
ptr727 merged 2 commits into
developfrom
feature/promotion-4083-review-fixes
Nov 11, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/promotion-4083-review-fixes

Conversation

@ptr727

@ptr727 ptr727 commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Fixes review findings on promotion #4083.

Closes on promotion: none

Changes

  • docs/repo-config.md and the branching-and-release-model branch-protection reference now run configure.sh apply first, and remove classic branch protection and stray rulesets only once apply has created both rulesets. apply refuses an unregistered repository, so removing protection first could leave the branches unprotected.
  • CODESTYLE.md "Interrupts" scopes the temp-and-rename rule. A store with transactions of its own, such as an SQLite database, is written through those instead.
  • scripts/build_dist.py ends each trailing link-reference definition where the parser ends it. A prose line directly after a definition is no longer cut from a generated include. spec/fidelity_text.py's LinkDefinition gains the parser's end line for this.
  • The python-codestyle, shell-codestyle, and branching-and-release-model generated copies are regenerated through scripts/build_dist.py.

Findings on #4083 not fixed here

Verification

  • tests/test_build_dist.py adds a case for a prose line the parser ends a definition before. It fails without the fix.
  • tests/test_fidelity_text.py adds a case for the definition's end line, covering a title continuation and a following prose line.
  • The full test suite, scripts/build_dist.py --check, the prose gate, ruff, and markdownlint, cspell, and editorconfig-checker through scripts/docker_lint.py pass.

🤖 Generated with Claude Code

ptr727 and others added 2 commits November 11, 2026 13:48
…railing Definitions

Fixes review findings on promotion #4083.

- docs/repo-config.md and the branching-and-release-model reference now run
  configure.sh apply before removing classic protection and stray rulesets,
  so a refused apply no longer leaves the branches unprotected.
- CODESTYLE.md "Interrupts" scopes the temp-and-rename rule away from a store
  with its own transactions, such as an SQLite database.
- build_dist.py ends a trailing definition where the parser ends it, using a
  new end line on fidelity_text's LinkDefinition, and treats a comment-shaped
  line inside a code block as content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Reason

Indented code blocks are refused in hub Markdown by MD046, and a fence's
closing line already stops the trailing-definition walk, so the code-line
guard covered no reachable case. The repo-config removal sentences now
follow the sentence explaining why apply refuses an unregistered repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings November 11, 2026 21:55
@ptr727

ptr727 commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head a1231eec8b1d2db6b89a7a2ff84224d8c0e885d3, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fcd594e and a1231ee.

Files ignored due to path filters: 9

  • .claude-plugin/fleet-skills/.source-digests/branching-and-release-model is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/python-codestyle is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/shell-codestyle is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/branching-and-release-model/references/branch-protection-and-promotion.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/shell-codestyle/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/branching-and-release-model/references/branch-protection-and-promotion.md is excluded by !.github/skills/**
  • .github/skills/python-codestyle/SKILL.md is excluded by !.github/skills/**
  • .github/skills/shell-codestyle/SKILL.md is excluded by !.github/skills/**
Files selected for processing: 9

  • .agents/skills/branching-and-release-model/references/branch-protection-and-promotion.md
  • .agents/skills/python-codestyle/SKILL.md
  • .agents/skills/shell-codestyle/SKILL.md
  • CODESTYLE.md
  • docs/repo-config.md
  • scripts/build_dist.py
  • spec/fidelity_text.py
  • tests/test_build_dist.py
  • tests/test_fidelity_text.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The review records no active issues, and the documented changes address the identified promotion findings with accompanying regression tests.

No open issues 🎉

What changed in this PR

This PR addresses promotion review findings by preserving branch protection during configuration, clarifying interrupt-safe persistence, and making generated Markdown regions follow parser-defined link boundaries.

Changes:

  • Runs configuration before removing classic protection and stray rulesets.
  • Exempts transactional stores from temporary-file replacement guidance.
  • Tracks link-definition end lines and adds regression tests.
  • Regenerates the affected skill distributions and source digests.
File Description
tests/​test_fidelity_text.py Adds tests for parser-reported link-definition end lines.
tests/​test_build_dist.py Adds a regression test ensuring prose after a link definition is preserved.
spec/​fidelity_text.py Adds parser-derived end-line metadata to link definitions.
scripts/​build_dist.py Uses parser spans to identify trailing link definitions in generated includes.
docs/​repo-config.md Documents applying repository rulesets before removing existing protection.
CODESTYLE.md Clarifies that transactional stores are exempt from temporary-file replacement guidance.
.github/​skills/​shell-codestyle/​SKILL.md Provides the regenerated shell interrupt-handling guidance.
.github/​skills/​python-codestyle/​SKILL.md Provides the regenerated Python interrupt-handling guidance.
.github/​skills/​branching-and-release-model/​references/​branch-protection-and-promotion.md Provides the regenerated branch-protection procedure.
.claude-plugin/​fleet-skills/​skills/​shell-codestyle/​SKILL.md Provides the regenerated Claude shell skill guidance.
.claude-plugin/​fleet-skills/​skills/​python-codestyle/​SKILL.md Provides the regenerated Claude Python skill guidance.
.claude-plugin/​fleet-skills/​skills/​branching-and-release-model/​references/​branch-protection-and-promotion.md Provides the regenerated Claude branch-protection guidance.
.claude-plugin/​fleet-skills/​.source-digests/​shell-codestyle Updates the shell skill source digest.
.claude-plugin/​fleet-skills/​.source-digests/​python-codestyle Updates the Python skill source digest.
.claude-plugin/​fleet-skills/​.source-digests/​branching-and-release-model Updates the branching skill source digest.
.agents/​skills/​shell-codestyle/​SKILL.md Updates the authored shell interrupt-handling guidance.
.agents/​skills/​python-codestyle/​SKILL.md Updates the authored Python interrupt-handling guidance.
.agents/​skills/​branching-and-release-model/​references/​branch-protection-and-promotion.md Updates the authored branch-protection procedure.

Review effort: Lite

@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.29%. Comparing base (fcd594e) to head (a1231ee).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4086      +/-   ##
===========================================
- Coverage    82.30%   82.29%   -0.02%     
===========================================
  Files           38       38              
  Lines        12963    12955       -8     
===========================================
- Hits         10669    10661       -8     
  Misses        2294     2294              
Flag Coverage Δ
python-3.13 82.29% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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