pub fn detect_base_ref() -> String
Detect the base ref from CI environment variables, falling back to “main”.