Skip to content

Releases: rw-core/pr-risk-analyzer

v1.0.12

Choose a tag to compare

@gbrandtio gbrandtio released this 16 Jul 10:39

Full Changelog: v1...v1.0.12

v1.0.11

Choose a tag to compare

@gbrandtio gbrandtio released this 16 Jul 09:44

Full Changelog: v1...v1.0.11

v1.0.10

Choose a tag to compare

@gbrandtio gbrandtio released this 16 Jul 07:12
  • FEATURE (Advanced Metrics): AdvancedMetricsHeuristic.calculateAdvancedMetrics now accepts an optional targetFiles parameter. 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-repository git log -p scan. Omitting the parameter keeps the existing whole-repository behavior.
  • FEATURE (Refactoring Detection): RefactoringDetectionAlgorithm.execute now accepts an optional targetFiles parameter 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 (R status) when the pathspec covers both endpoints; a rename whose other endpoint falls outside targetFiles surfaces as an add/delete and goes undetected.
  • PERFORMANCE (Bus Factor): BusFactorAlgorithm.executeForFiles now 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 that limit now 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 currentFile pointing at the prior diff section when it hit a --- /dev/null pre-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)

Choose a tag to compare

@github-actions github-actions released this 16 Jul 10:41

Rolling release; tracks the latest v1.x. Pin to v1.0.12 for immutability.

v1.0.9

Choose a tag to compare

@gbrandtio gbrandtio released this 15 Jul 15:32
  • FIX: Fixing algorithms to actually filter only the targetFiles.
  • FEAT: Adding targetFiles to churn and code volatility.

v1.0.8

Choose a tag to compare

@gbrandtio gbrandtio released this 15 Jul 15:07
  • 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

Choose a tag to compare

@gbrandtio gbrandtio released this 15 Jul 14:48
  • 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

Choose a tag to compare

@gbrandtio gbrandtio released this 15 Jul 10:38
  • PERFORMANCE (SZZ Algorithm): Fully refactored SzzAlgorithm execution model to use package:pool for global concurrency management. Eliminated head-of-line blocking by resolving commit lines into flat, concurrent git blame tasks 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

Choose a tag to compare

@gbrandtio gbrandtio released this 14 Jul 16:15
  • FIX (SZZ Algorithm): Fixing SZZ algorithm to use only the targetFiles list and calculate bug-hotspots only for them, in case the targetFiles has 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

Choose a tag to compare

@gbrandtio gbrandtio released this 14 Jul 14:27
  • 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