Releases: rw-core/pr-risk-analyzer
Releases · rw-core/pr-risk-analyzer
Release list
v1.0.12
Full Changelog: v1...v1.0.12
v1.0.11
Full Changelog: v1...v1.0.11
v1.0.10
- FEATURE (Advanced Metrics):
AdvancedMetricsHeuristic.calculateAdvancedMetricsnow accepts an optionaltargetFilesparameter. The history walk is limited to commits touching those paths (git pathspec) and all reported metrics (complexity, co-change matrix, architecture distribution) are restricted to exactly those files, so callers scoping analysis to e.g. a PR's modified files no longer pay for a full-repositorygit log -pscan. Omitting the parameter keeps the existing whole-repository behavior. - FEATURE (Refactoring Detection):
RefactoringDetectionAlgorithm.executenow accepts an optionaltargetFilesparameter that limits the history walk via pathspec and restricts reported renames to pairs whose old or new path is in the target set. Caveat: git can only pair a rename (Rstatus) when the pathspec covers both endpoints; a rename whose other endpoint falls outsidetargetFilessurfaces as an add/delete and goes undetected. - PERFORMANCE (Bus Factor):
BusFactorAlgorithm.executeForFilesnow walks the history once (git log --name-only -- <targetFiles>) and splits author counts per file, instead of spawning one git process plus one isolate per target file. Per-file results are unchanged; note thatlimitnow bounds the single shared walk rather than each file's history individually. - FIX (Advanced Metrics): Added lines of a newly added file are no longer attributed to the previous file in the commit's diff. The parser previously kept
currentFilepointing at the prior diff section when it hit a--- /dev/nullpre-image header; complexity attribution now keys on the post-image (+++ b/) path and resets at every file boundary.
Full Changelog: v1...v1.0.10
v1 (rolling)
Rolling release; tracks the latest v1.x. Pin to v1.0.12 for immutability.
v1.0.9
- FIX: Fixing algorithms to actually filter only the
targetFiles. - FEAT: Adding
targetFilesto churn and code volatility.
v1.0.8
- Quality: Making the PR comment and GA output more concise.
- FIX: Fixing the Github Action to refer only to the files that the PR is touching.
Full Changelog: v1...v1.0.8
v1.0.7
- Performance: Scoped every algorithm to a 2-year window (2 years calculated since the previous commit BEFORE the current PR's commits).
- Quality: Structured the PR comment output better (results on top, citations and interpretation at the end).
Full Changelog: v1...v1.0.7
v1.0.6
- PERFORMANCE (SZZ Algorithm): Fully refactored
SzzAlgorithmexecution model to usepackage:poolfor global concurrency management. Eliminated head-of-line blocking by resolving commit lines into flat, concurrentgit blametasks governed by a bounded resource pool (Pool(20)), maximizing CPU utilization without exhausting OS fork limits or crashing CI runners.
Full Changelog: v1...v1.0.6
v1.0.5
- FIX (SZZ Algorithm): Fixing SZZ algorithm to use only the
targetFileslist and calculate bug-hotspots only for them, in case thetargetFileshas been provided. This is helpful for Github Actions that want to check only the files that the commit is touching (and nothing else). Previously, it would blame the lines that the commit is touching, go to previous commits, and blame all the files of the previous commit.
Full Changelog: v1...v1.0.5
v1.0.4
- Fixes NPath calculations, by folding the statements that have in their body a jump (e.g., a return statement).
- Pumps rw_git version that includes the above fix as well as bus factor calculation per file.
Full Changelog: v1...v1.0.4