huskies: merge 963
This commit is contained in:
@@ -59,7 +59,7 @@ pub struct WorkItemContent {
|
||||
pub content: String,
|
||||
pub stage: crate::pipeline_state::Stage,
|
||||
pub name: Option<String>,
|
||||
pub agent: Option<String>,
|
||||
pub agent: Option<crate::config::AgentName>,
|
||||
}
|
||||
|
||||
/// A single entry in the project's configured agent roster.
|
||||
@@ -163,9 +163,7 @@ pub fn get_work_item_content(
|
||||
|
||||
let crdt_view = crate::crdt_state::read_item(story_id);
|
||||
let crdt_name = crdt_view.as_ref().map(|v| v.name().to_string());
|
||||
let crdt_agent = crdt_view
|
||||
.as_ref()
|
||||
.and_then(|v| v.agent().map(|a| a.to_string()));
|
||||
let crdt_agent = crdt_view.as_ref().and_then(|v| v.agent());
|
||||
|
||||
for (stage_dir, stage) in &stages {
|
||||
if let Some(content) = io::read_work_item_from_stage(&work_dir, stage_dir, &filename)? {
|
||||
@@ -173,7 +171,7 @@ pub fn get_work_item_content(
|
||||
content,
|
||||
stage: stage.clone(),
|
||||
name: crdt_name.clone(),
|
||||
agent: crdt_agent.clone(),
|
||||
agent: crdt_agent,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user