swarm-controller: report all assignees, not just one
This commit is contained in:
parent
957291e3a7
commit
cc8e48a69b
1 changed files with 12 additions and 2 deletions
|
|
@ -56,7 +56,12 @@ pub struct IssueReportRow {
|
||||||
pub number: i64,
|
pub number: i64,
|
||||||
pub title: String,
|
pub title: String,
|
||||||
pub labels: Vec<String>,
|
pub labels: Vec<String>,
|
||||||
pub assignee: Option<String>,
|
/// All assignees, not just one — forgejo's `Issue::assignee` is a
|
||||||
|
/// legacy single-value field; `assignee`**s** (plural) is the real
|
||||||
|
/// multi-assignee list, which this repo's issues actually use (mara,
|
||||||
|
/// on review: "i thought you can assign multiple users, why just a
|
||||||
|
/// string?").
|
||||||
|
pub assignees: Vec<String>,
|
||||||
pub html_url: Option<String>,
|
pub html_url: Option<String>,
|
||||||
/// True if any of this issue's own dependencies is still open — same
|
/// True if any of this issue's own dependencies is still open — same
|
||||||
/// semantics `hive-forge issue dependency list` already uses (a closed
|
/// semantics `hive-forge issue dependency list` already uses (a closed
|
||||||
|
|
@ -697,7 +702,12 @@ impl Client {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|l| l.name)
|
.filter_map(|l| l.name)
|
||||||
.collect(),
|
.collect(),
|
||||||
assignee: issue.assignee.and_then(|a| a.login),
|
assignees: issue
|
||||||
|
.assignees
|
||||||
|
.unwrap_or_default()
|
||||||
|
.into_iter()
|
||||||
|
.filter_map(|a| a.login)
|
||||||
|
.collect(),
|
||||||
html_url: issue.html_url.map(|u| u.to_string()),
|
html_url: issue.html_url.map(|u| u.to_string()),
|
||||||
blocked,
|
blocked,
|
||||||
depended_on_by_count: dependent_counts.get(&number).copied().unwrap_or(0),
|
depended_on_by_count: dependent_counts.get(&number).copied().unwrap_or(0),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue