ci: link discussions on push to main so merged pull requests update them again #1073
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 350 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1073"
general
weight: 0.35
jdx
Since December 2, GitHub blocks
pull_request_targetin public repositories unless an Actions policy allows it, so runs that use it end instartup_failure(GitHub docs).link-discussionsnow runs on the push tomainthat a merge makes, looks up the pull request whose merge commit is the pushed SHA, and passes its number to the same pinned shared workflow aspr_number. Discussions named by merged pull requests, including ones from forks, are commented on and closed again without a policy exception. This relies on squash merges (one pull request per push).Validation:
jactionlint,zizmorandgh actions-lock --no-fixreport no errors. The same lookup script, run locally against jdx/fnox, returned the right number for two merge commits and nothing for a non-merge commit. Thepushtrigger can only be verified after merge. Merges that happened during the failures are not backfilled.AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: 2.1.334.
🤖 Generated with Claude Code
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Chores
Updated discussion-linking automation to check pushes to the main branch and associate a discussion only when it finds a matching merged pull request. If the matching pull request is not immediately available, the check retries briefly before proceeding. When no match is found, no discussion is linked. Concurrent checks for the same commit are coordinated without canceling in-progress runs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->