Skip to content

Honor a Required Check's Integration Id in the Attested Wait Hold - #2842

Merged
ptr727 merged 2 commits into
developfrom
feature/2839-required-check-app
Oct 11, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/2839-required-check-app

Conversation

@ptr727

@ptr727 ptr727 commented Oct 11, 2026

Copy link
Copy Markdown
Owner

The attested-wait hold matched a ruleset's required status check against the rollup by name alone, so a same-name check from another app satisfied a rule bound to one app.

  • Required entries now carry their integration_id, and a malformed one makes the rules read refuse.
  • The rollup query carries each CheckRun's app database id.
  • An entry with an integration_id is met only by a same-name CheckRun of that app. A StatusContext never meets one, which errs toward holding and is bounded by the wait timeout.
  • The CHECKS_PENDING line names the unmet required contexts.

Fixes #2839

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 11, 2026 14:45
The hold matched a ruleset's required status check against the rollup by name alone, so a same-name check from another app satisfied a rule bound to one app. Required entries now carry their integration_id, the rollup carries each CheckRun's app database id, and an entry with an integration_id is met only by a same-name CheckRun of that app. A StatusContext never meets one, which errs toward holding. The hold's output names the unmet required contexts.

Fixes #2839

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 11, 2026 21:47
@coderabbitai

coderabbitai Bot commented Oct 11, 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: de26a2a8-c729-41a3-9076-f7f644a1dc65

  • 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.

@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.49%. Comparing base (8729928) to head (23aad5f).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2842      +/-   ##
===========================================
+ Coverage    60.47%   60.49%   +0.02%     
===========================================
  Files           16       16              
  Lines         8528     8534       +6     
===========================================
+ Hits          5157     5163       +6     
  Misses        3371     3371              
Flag Coverage Δ
python-3.13 60.49% <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.

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.

🔵 Needs a closer look

Use the non-deprecated fullDatabaseId field for app identity lookup.

0 open findings

What changed in this PR

Updates attested-wait required-check matching to honor GitHub App integration IDs.

Changes:

  • Adds app IDs to CheckRun rollup data.
  • Validates and matches required checks by name and integration ID.
  • Adds coverage for parsing, matching, and pending output.
File Description
tests/​test_pr_review.py Tests integration-aware matching and reporting.
scripts/​pr_review.py Implements integration-aware required-check matching.

🧠 Review effort: Lite


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

@ptr727

ptr727 commented Oct 11, 2026

Copy link
Copy Markdown
Owner Author

Declined: the suggestion to use fullDatabaseId for the app lookup does not apply. Querying the live schema, the App type has no fullDatabaseId field (the query fails with undefinedField), and App.databaseId is not deprecated. A ruleset's integration_id is the App's integer database id, which is what databaseId returns.

@ptr727
ptr727 merged commit c634c79 into develop Oct 11, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/2839-required-check-app branch October 11, 2026 21:55
ptr727 added a commit that referenced this pull request Oct 11, 2026
…th Layouts to Main (#2847)

## Summary

Promotes [#2842](#2842)
and [#2846](#2846) to
main.

- `pr_review.py wait`'s required-check hold now honors a ruleset entry's
`integration_id`. A bound entry is met only by a same-name CheckRun from
that app, so a same-name check from another app, or a commit status, no
longer ends the hold. The CHECKS_PENDING message names the unmet
required contexts.
- `prose_lint.py`'s opt-in `sentence-length` check reads six layouts it
misread: list markers no longer count as words (one shared helper for
Markdown, comments, and docstrings), docstring boundaries come from the
AST, a closing quote on a code line no longer sets the indent base,
NumPy and Google docstring sections read as structure plus prose, and an
indented block under a colon comment line is not joined into prose.

Follow-up filed: #2843 (the sentence-length layouts left past the edit
budget).

Closes #2838
Closes #2839

🤖 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants