review classifier: the certainty column's header is just certainty, so the column stays narrow
This commit is contained in:
parent
3931a40e30
commit
e7ed28b382
2 changed files with 8 additions and 8 deletions
|
|
@ -339,8 +339,8 @@ all.
|
||||||
The service account posts the verdict as a forge review, approve or request
|
The service account posts the verdict as a forge review, approve or request
|
||||||
changes, and the table is the review's body. An illustrative table:
|
changes, and the table is the review's body. An illustrative table:
|
||||||
|
|
||||||
| result | check | certainty / threshold | reason |
|
| result | check | certainty | reason |
|
||||||
| ----------- | ------------ | --------------------- | -------------------------------------------- |
|
| ----------- | ------------ | --------- | -------------------------------------------- |
|
||||||
| ❌ no match | datetime | 92 / 80 | Two new timestamps use naive datetimes. |
|
| ❌ no match | datetime | 92 / 80 | Two new timestamps use naive datetimes. |
|
||||||
| ✅ no match | no-ads | 99 / 90 | No commit message carries an AI attribution. |
|
| ✅ no match | no-ads | 99 / 90 | No commit message carries an AI attribution. |
|
||||||
| ❔ unsure | bao-first | 95 / 70 | The PR adds no secret. |
|
| ❔ unsure | bao-first | 95 / 70 | The PR adds no secret. |
|
||||||
|
|
|
||||||
|
|
@ -711,7 +711,7 @@ fn no_verdict(reason: &str, rows: &[Row]) -> String {
|
||||||
/// The result table, one row per classification.
|
/// The result table, one row per classification.
|
||||||
fn table(rows: &[Row]) -> String {
|
fn table(rows: &[Row]) -> String {
|
||||||
let mut out = String::from(
|
let mut out = String::from(
|
||||||
"| result | check | certainty / threshold | reason |\n\
|
"| result | check | certainty | reason |\n\
|
||||||
| --- | --- | --- | --- |\n",
|
| --- | --- | --- | --- |\n",
|
||||||
);
|
);
|
||||||
for r in rows {
|
for r in rows {
|
||||||
|
|
@ -920,7 +920,7 @@ mod tests {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
body,
|
body,
|
||||||
format!(
|
format!(
|
||||||
"| result | check | certainty / threshold | reason |\n\
|
"| result | check | certainty | reason |\n\
|
||||||
| --- | --- | --- | --- |\n{expected}\n"
|
| --- | --- | --- | --- |\n{expected}\n"
|
||||||
),
|
),
|
||||||
"{case}"
|
"{case}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue