Skip to content

🔧 CodeRabbit CI Fix: Fix failing PR Policy CI checks#954

Merged
BigSimmo merged 1 commit into
cursor/supabase-preview-migration-drift-7850from
coderabbitai/ci-fix/10ebcfe
Jul 20, 2026
Merged

🔧 CodeRabbit CI Fix: Fix failing PR Policy CI checks#954
BigSimmo merged 1 commit into
cursor/supabase-preview-migration-drift-7850from
coderabbitai/ci-fix/10ebcfe

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

CI failure fixes was requested by @BigSimmo.

The following files were modified:

  • PR_POLICY_BODY.md

@coderabbitai
coderabbitai Bot requested a review from BigSimmo as a code owner July 20, 2026 05:54
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2530a23c-5c9a-4191-a98a-9733ce616634

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Jul 20, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@BigSimmo
BigSimmo merged commit 5fcf1e8 into cursor/supabase-preview-migration-drift-7850 Jul 20, 2026
2 checks passed
@BigSimmo
BigSimmo deleted the coderabbitai/ci-fix/10ebcfe branch July 20, 2026 06:05
BigSimmo added a commit that referenced this pull request Jul 20, 2026
* fix(db): restore orphan migration versions for Supabase Preview

Hosted Preview fails when schema_migrations still records versions that
were renamed or renumbered away locally. Add no-op historical placeholders
for those orphan versions, plus an offline guard and live history check.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* fix(test): allowlist historical migration placeholder stems

Unit coverage rejected the six no-op preview-alignment placeholders
because duplicate stems must be explicitly allowlisted.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* fix: apply CodeRabbit auto-fixes

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>

* 🔧 CodeRabbit CI Fix: Fix failing PR Policy CI checks (#954)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(pr-policy): combine duplicate section headings for robust checklist validation

The section() function previously used findIndex() which returns only the
FIRST occurrence of a heading. When a PR body accidentally contains duplicate
section headings (e.g. a prose rationale block followed by a checklist block
both under ## Clinical Governance Preflight), only the first block was
evaluated and all required checklist items appeared "missing".

Fix: iterate over ALL heading occurrences and join their content. This makes
the validator combine prose + checklist into a single searchable block,
matching how a human reader treats the two blocks as one logical section.

Add a self-test covering the duplicate-heading scenario.

* Changes before error encountered

Agent-Logs-Url: https://github.com/BigSimmo/Database/sessions/4438032f-f568-49b2-9603-947f4c5ac488

* fix: export section helper and use it in ci.yml governance sync

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
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