Skip to content

fix(agents): the PR body check passes a PR Dependabot opened - #2025

Merged
V3RON merged 1 commit into
mainfrom
docs/dependabot-pr-body
Dec 2, 2026
Merged

V3RON merged 1 commit into
mainfrom
docs/dependabot-pr-body

Conversation

@V3RON

@V3RON V3RON commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

pr-body-check.mjs now passes a PR that dependabot[bot] opened, printing one skipped line. Dependabot writes its own body and rewrites it on every rebase. Until now, every Dependabot PR failed "PR body", and merge-pr.sh refused them before it read CI (#1925, #1955 and #1799 today).

The skip reads the PR's author from the REST pulls endpoint. Another author's body on a dependabot/ branch is still checked. Delivery rule 12 says so.

$ node .agents/scripts/pr-body-check.mjs 1955
pr-body: skipped: Dependabot wrote this body (delivery rule 12)

Review

Spec review: skipped. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 0.3M.
Assessment: complete

Written by an agent.

Dependabot writes and rewrites its own PR body, so no Dependabot PR could pass
pr-body-check.mjs, and merge-pr.sh refused every one before reading CI.
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR body-check script now exits successfully before body validation when the fetched PR author is dependabot[bot]. The delivery rule documents this exception. Tests cover an incomplete body from Dependabot and confirm that another author still receives missing-footer and missing-Review errors.

Merge Risk: Minimal · up to 2051d

Dependabot-authored PRs now pass the body check with a single skipped line, so the merge gate no longer stops on bodies Dependabot writes itself. Other authors, including those using a dependabot/ branch, are still checked. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: pr-body-check now passes a PR opened by Dependabot. It uses the fix(agents) prefix and is specific. The changeset matches it: the script skips body validation for depe…
Description check Passed The description states the change: pr-body-check.mjs now skips PRs opened by dependabot[bot] and prints one skipped line. It explains the reason, the author check via the REST pulls endpoint, that oth…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: pr-body-check now passes a PR opened by Dependabot. It uses the fix(agents) prefix and is specific. The changeset matches it: the script skips body validation for dependabot[bot] authors, with docs and a test added.

Full details: Description check

Explanation

The description states the change: pr-body-check.mjs now skips PRs opened by dependabot[bot] and prints one skipped line. It explains the reason, the author check via the REST pulls endpoint, that other authors on dependabot/ branches are still checked, and gives a sample command output. This matches the summarized changes to the script, delivery rule 12 docs, and the new test.

  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: c1b16ad5-9f81-438f-9afe-1f96e9654a2d
Commits

Reviewing files that changed from the base of the PR and between feaf4f8 and 2051d37.

Files selected for processing: 3

  • .agents/scripts/pr-body-check.mjs
  • docs/internal/agent-rules/delivery.md
  • src/pr-body-check.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

Finishing Touches
Fix failing CI checks

  • Commit to this branch
  • Create a new PR

@V3RON
V3RON marked this pull request as ready for review December 2, 2026 09:16
@V3RON
V3RON merged commit 62c7299 into main Dec 2, 2026
69 of 75 checks passed
@V3RON
V3RON deleted the docs/dependabot-pr-body branch December 2, 2026 09:45
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