Read the stored review and its retained evidence, including the source hash an editor must retain when requesting approval after judgment authoring/sync.
(repo: &Repository, id: &str)
| 136 | /// Read the stored review and its retained evidence, including the source hash |
| 137 | /// an editor must retain when requesting approval after judgment authoring/sync. |
| 138 | pub fn get(repo: &Repository, id: &str) -> ReviewResult<ReviewDetail> { |
| 139 | let intent = repo.resolve_intent_key(id)?; |
| 140 | let inputs = bridge::read_intent(repo, &intent)?; |
| 141 | Ok(ReviewDetail { |
| 142 | path: repo |
| 143 | .vault_intent_path(&intent)? |
| 144 | .ok_or_else(|| invalid("review path is missing"))?, |
| 145 | source_hash: bridge::source_content_hash(&inputs), |
| 146 | node: bridge::lift(&inputs)?, |
| 147 | subject: repo.review_intent_subject(&intent)?, |
| 148 | frontmatter: inputs.frontmatter, |
| 149 | body: inputs.body, |
| 150 | intent, |
| 151 | }) |
| 152 | } |
| 153 | |
| 154 | /// Secrets stay in the injected local store and are never part of the response. |
| 155 | pub fn approve( |
no test coverage detected