← Back to Pull requests

feat: handle repo defined in composer.json #1

Closed
unknown closed this pull request without merging on Aug 31, 2022 13:16 UTC
View on GitHub
unknown unknown commented on Apr 01, 2022 16:19 UTC
Author

Description


Helena's fork of php-libyear, evaluating the age of the libraries of the project. This fork permits it to look at custom libraries in satis and not just on Packagist

User Story


https://bedrock.tpondemand.com/entity/153767-poc-implement-libyear-using-helenas-fork

ORIGINAL TEXT :


We have the same need that explain in this issue, check dependencies which have custom repositories defined in composer.json file.

To do so, repositories url are taken from composer file or packagist url by default otherwise.
For each repository the packages.json file is called to know the url to call for getting package info.
Example with packagist :
https://repo.packagist.org/packages.json => two data are used metadata-url & available package
with metadata-url we know the package url to get the package info : https://repo.packagist.org/p2/ecoapm/libyear.json
and available-package will avoid unnecessary call on repository we know the package is not available.

Diff: 131 lines (+98 / -33) across 1 files Reviewer: cyril-flieller Review duration: 218697m
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 131 lines diff across 1 files
0.32
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.292
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 32.2% (LOW) · Higher = larger blast radius
32.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 12.7% · Safe to merge
12.7%