Skip to content

Commit 7e62874

Browse files
committed
Update agenda generator.
1 parent 87d399c commit 7e62874

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

tools/agenda-generator/src/generator.rs

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ impl Generator {
4545
4646
## Agenda
4747
48-
- [Open action items](https://hackmd.io/ovrbJj6CRduRgSA0Wzg2zg)
49-
- [Libs team wishlist](https://hackmd.io/HPjGPC09RayylxGeaIfTew)
5048
- Triage
5149
- Anything else?
5250
@@ -106,7 +104,6 @@ impl Generator {
106104
107105
## Agenda
108106
109-
- [Open Action Items](https://hackmd.io/Uehlc0qUQfWfvY1swYWRgQ)
110107
- Triage
111108
- Anything else?
112109
@@ -378,9 +375,9 @@ impl Generator {
378375
Ok(())
379376
}
380377

381-
fn write_issues(&mut self, issues: &[Issue]) -> Result<()> {
378+
fn write_issues(&mut self, category: &str, issues: &[Issue]) -> Result<()> {
382379
for issue in issues.iter().rev() {
383-
write!(self.agenda, " - {}", shorten(&issue.html_url))?;
380+
write!(self.agenda, "### ({category}) {}", shorten(&issue.html_url))?;
384381
for label in issue.labels.iter().filter(|s| s.starts_with("P-")) {
385382
write!(self.agenda, " `{}`", label)?;
386383
}
@@ -390,14 +387,16 @@ impl Generator {
390387
.iter()
391388
.any(|l| l == "finished-final-comment-period")
392389
{
393-
write!(self.agenda, " FCP finished.")?;
390+
writeln!(self.agenda,)?;
391+
write!(self.agenda, "FCP finished.")?;
394392
for label in issue.labels.iter() {
395393
if let Some(disposition) = label.strip_prefix("disposition-") {
396394
write!(self.agenda, " Should be {}d?", disposition)?;
397395
}
398396
}
399397
writeln!(self.agenda,)?;
400398
}
399+
writeln!(self.agenda,)?;
401400
}
402401

403402
Ok(())
@@ -570,20 +569,20 @@ impl GithubQuery {
570569
url += sort.web_ui_str();
571570
}
572571

573-
writeln!(
574-
generator.agenda,
575-
"- [{} `{repo}` `{labels}` items]({url})",
576-
issues.len(),
577-
repo = repo,
578-
labels = labels.join("` `"),
579-
url = url,
580-
)?;
572+
//writeln!(
573+
// generator.agenda,
574+
// "- [{} `{repo}` `{labels}` items]({url})",
575+
// issues.len(),
576+
// repo = repo,
577+
// labels = labels.join("` `"),
578+
// url = url,
579+
//)?;
581580
let issues = if let Some(count) = self.count {
582581
&issues[..count]
583582
} else {
584583
&issues[..]
585584
};
586-
generator.write_issues(&issues)?;
585+
generator.write_issues(&labels.join(" "), &issues)?;
587586

588587
empty = false;
589588
}

0 commit comments

Comments
 (0)