Skip to content

Bound the Q_BOT_ID Comments to the Window the Query Reads - #2687

Merged
ptr727 merged 4 commits into
developfrom
feature/bot-id-window-comment
Oct 10, 2026
Merged

ptr727 merged 4 commits into
developfrom
feature/bot-id-window-comment

Conversation

@ptr727

@ptr727 ptr727 commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Answers Copilot's finding on the promotion pull request #2686, which flagged the comment beside Q_BOT_ID in scripts/pr_review.py for promising the bot id resolves wherever every reviewed pull request has merged. The query reads only a bounded window of recently updated pull requests, so that promise does not hold.

  • Replaces that line with what omitting states actually does: merged pull requests fill the window alongside open ones.
  • Bounds the sibling line two lines up the same way. It said the id "resolves" even on a pull request whose round 1 carries no review, and now says the query reads the id from every pull request in the window rather than only the one under review.

Both edits are comment lines, so this pull request carries the comments label. No behavior changes.

🤖 Generated with Claude Code

ptr727 and others added 3 commits October 9, 2026 17:08
…on Guarantee

The comment promised the bot id resolves in any repository whose reviewed
pull requests have all merged, but the query reads only a bounded window of
recently updated pull requests, so it does not. State the behavior instead:
merged pull requests fill the window alongside open ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The comment said the id resolves even on a pull request whose round 1
carries no review, which overclaims the same way the states line did: the
id is found only where a pull request in the bounded window carries a
review. State what the query reads instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"It" bound to the comments connection named on the line before, which
never supplies the id. Name the query instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 10, 2026 00:11
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 10, 2026
@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bbcb5661-ecf5-4b3c-b4da-cad16803ae57

  • 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

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

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.

🟡 Changes recommended

Review comments identify remaining wording, citation, and length issues.

1 open finding
What changed in this PR

Updates scripts/pr_review.py comments to clarify the bounded Q_BOT_ID query scope without changing behavior.

Changes:

  • Documents merged and open pull requests sharing the query window.
  • Clarifies bot ID lookup scope.
File Summary
scripts/​pr_review.py Refines comments describing query scope and pull-request states.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/pr_review.py Resolved
@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.58%. Comparing base (02dd857) to head (a026cb4).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2687   +/-   ##
========================================
  Coverage    59.58%   59.58%           
========================================
  Files           16       16           
  Lines         8316     8316           
========================================
  Hits          4955     4955           
  Misses        3361     3361           
Flag Coverage Δ
python-3.13 59.58% <ø> (ø)

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.

The line restated what the block's opening and its node-id line already
say, that the id is read live from the repository's pull requests and is
the same wherever it is found, and it cited a rule rather than describing
the query.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

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

@ptr727
ptr727 merged commit e69f3dd into develop Oct 10, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/bot-id-window-comment branch October 10, 2026 00:21
ptr727 added a commit that referenced this pull request Oct 10, 2026
## Summary

Promotes develop to main. It carries two changes:

- #2681 Deletes the stale "Disproved Claims" entry about the GraphQL
`pullRequests` connection's default `states` from
`.github/copilot-instructions.md`, states in the ledger preamble that an
entry is never about hub-hosted machinery, and records the live `states`
constraint beside `Q_BOT_ID` in `scripts/pr_review.py`.
- #2687 Bounds the `Q_BOT_ID` comments to the window the query reads,
answering this pull request's review finding.

Fixes #1238

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants