test: merge-bot eligibility check run (DO NOT MERGE)#5
Conversation
Render the merge-bot eligibility checklist as a GitHub Check Run on the PR head commit so maintainers can see why a PR is or isn't eligible directly from the PR's checks panel, without having to comment `@NixOS/nixpkgs-merge-bot merge` first. The check uses `success` for eligible PRs and `neutral` for not-yet-eligible ones, so it never blocks merging on its own. Each bot run upserts the check on the current head SHA (force-pushes get a fresh check). The same `renderChecklist` helper is now reused by the bot's reply comment. Requires `checks: write` on both the workflow's fallback token and the bot's GitHub App.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe pull request grants write permissions to GitHub Checks in GitHub Actions workflows and extends the merge bot to create/update a "merge-bot eligibility" check run alongside PR comments, with support for dry-run mode and eligible user listings. Changes
Sequence DiagramsequenceDiagram
participant GH as GitHub
participant Bot as Bot (merge.js)
participant Check as Checks API
participant PR as PR Comments API
GH->>Bot: PR event trigger
activate Bot
Note over Bot: Run checklist logic
Bot->>Bot: Extract eligible & checklist data
Bot->>Bot: Render checklist to Markdown
Bot->>PR: Post/update PR comment
activate PR
PR-->>Bot: Comment created
deactivate PR
alt dry-run enabled
Bot->>Bot: Log check payload
else normal execution
Bot->>Check: Create/update check run
activate Check
Check-->>Bot: Check run created with conclusion
deactivate Check
end
deactivate Bot
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Fork-only test PR to verify the new
merge-bot eligibilitycheck run renders correctly in the PR's checks panel.Will be closed once verified — do not merge.
Summary by CodeRabbit
New Features
Chores