Skip to content
Merged
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
403 changes: 402 additions & 1 deletion docs/api/openapi.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions services/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ pub mod review_stats;
pub mod rewards;
/// The one way a run is marked failed: always with a reason and a pass.
pub mod run_fail;
/// The questions a run asks when it needs a person's answer, and the
/// answers people give in CoderHelm.
pub mod run_questions;
/// Run statuses; which ones a person set; closing and reopening a run.
pub mod run_status;
#[cfg(test)]
Expand Down
12 changes: 12 additions & 0 deletions services/common/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,16 @@ pub struct TicketMessage {
/// "author: words". The planner's trace checks then inform, not block.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub person_direction: Option<String>,
/// Answers people gave in CoderHelm to an earlier run's questions on
/// this ticket. Triage and the planner read them word for word, and the
/// planner doesn't ask them again (see `run_questions`).
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub answers: Vec<crate::run_questions::Answer>,
/// The id the new run takes, when whoever sent the ticket named it
/// first (answering on the dashboard links the asking run to the run
/// that picks the answers up). A continuation keeps its own id.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub new_run_id: Option<String>,
}

fn default_branch() -> String {
Expand Down Expand Up @@ -770,6 +780,8 @@ impl Default for TicketMessage {
plan_cache_key: None,
team_instructions: String::new(),
person_direction: None,
answers: Vec::new(),
new_run_id: None,
}
}
}
Expand Down
Loading
Loading