MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / insert_review_approval

Function insert_review_approval

atomic-cli/src/commands/rpc.rs:4008–4020  ·  view source on GitHub ↗
(
    response: &pb::InsertChangesResponse,
)

Source from the content-addressed store, hash-verified

4006}
4007
4008fn insert_review_approval(
4009 response: &pb::InsertChangesResponse,
4010) -> Option<atomic_repository::NativeReviewEvidence> {
4011 response
4012 .review_approval
4013 .as_ref()
4014 .map(|review| atomic_repository::NativeReviewEvidence {
4015 approval: review.approval.clone(),
4016 review: review.review.clone(),
4017 content_hash: review.content_hash.clone(),
4018 signer: review.signer.clone(),
4019 })
4020}
4021
4022/// The inline conflicted-file entries off the response's listing (the
4023/// first record's line per file, in listing order).

Callers 3

insert_singleFunction · 0.85
insert_promoteFunction · 0.85

Calls 2

as_refMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected