Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ only the file name. The JSON body cannot exceed 64 MiB. The command sends the ex
An identical upload returns the recorded report. Upload success records evidence;
the server evaluates the coverage check separately.

## Other CI systems

`proofline ci review --junit proofline.xml` also writes the review as JUnit XML. An open finding or a blocked check is a failure and an incomplete assessment is an error; a dismissed, accepted or resolved finding passes. The exit code is unchanged, so `--fail-on` still decides it.
GitLab CI: `artifacts: { when: always, reports: { junit: proofline.xml } }`
Jenkins: `sh 'proofline ci review --junit proofline.xml'`, then `junit 'proofline.xml'` in `post { always { } }`.

Licensed under Apache-2.0.

## Publishing
Expand Down
13 changes: 10 additions & 3 deletions src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ use crate::outcome::{self, Outcome};
use crate::render::location;
use crate::severity::Severity;
use crate::text::one_line;
use crate::{RepositoryArgs, Verdict, connect, connected_repository, preflight, read_review, say};
use crate::{
ReportKind, RepositoryArgs, Verdict, connect, connected_repository, preflight, read_review, say,
};

/// Identifies a script this CLI wrote. Uninstall removes a hook only when its
/// whole text is the script this version writes, so an edited hook stays.
Expand Down Expand Up @@ -493,8 +495,13 @@ async fn request(
verify_finding_ids: Vec::new(),
};
let requested = api.request_patch_review(repository_id, &request).await?;
let (_, detail, state) =
read_review(api, requested.review_id, Some(deadline), false).await?;
let (_, detail, state) = read_review(
api,
requested.review_id,
Some(deadline),
ReportKind::Unchecked,
)
.await?;
anyhow::Ok((requested.review_id, detail, state))
};
match requested.await {
Expand Down
Loading