pub struct VcsReport {
pub long_window_days: u32,
pub recent_window_days: u32,
pub risk_score_version: u32,
pub vcs_schema_version: u32,
pub truncated_shallow_clone: bool,
pub vcs_aggregate: Option<VcsAggregate>,
pub files: Vec<VcsReportFile>,
}vcs-git only.Expand description
Wire form of the file-ranking change-history report (issue #328) —
the single serialized shape shared by bca vcs, POST /vcs, and the
Python vcs.rank() (#664).
The four constant stamps (long_window_days, recent_window_days,
risk_score_version, vcs_schema_version) sit once at the top level
rather than per row (issue #635); each files row carries only the
per-file metrics under a nested vcs key (issue #684). vcs_aggregate
is the directory-/repo-level bus-factor summary, omitted when not
computed.
Fields§
§long_window_days: u32Long window length, in days (constant across rows).
recent_window_days: u32Recent window length, in days (constant across rows).
risk_score_version: u32Composite-formula version.
vcs_schema_version: u32Per-row metric-block shape version.
truncated_shallow_clone: boolWhether the history came from a shallow clone.
vcs_aggregate: Option<VcsAggregate>Directory-/repo-level bus-factor aggregate, when computed.
files: Vec<VcsReportFile>Files ranked by descending vcs.risk_score.