Skip to content

Commit 32c85e0

Browse files
authored
Merge pull request #21 from yaahc/error-handling-pg
Add support for error handling pg agenda
2 parents c6abf6f + d004917 commit 32c85e0

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

tools/agenda-generator/src/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ arg_enum! {
1818
pub enum AgendaKind {
1919
Libs,
2020
LibsAPI,
21+
PGEH,
2122
}
2223
}

tools/agenda-generator/src/generator.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,39 @@ impl Generator {
147147
Ok(self.agenda)
148148
}
149149

150+
pub fn error_handling_pg_agenda(mut self) -> Result<String> {
151+
IssueQuery::new("Nominated")
152+
.labels(&["PG-error-handling", "I-nominated"])
153+
.repo("rust-lang/rust")
154+
.repo("rust-lang/project-error-handling")
155+
.write(&mut self)?;
156+
157+
IssueQuery::new("PG Error Handling")
158+
.labels(&["PG-error-handling"])
159+
.repo("rust-lang/rust")
160+
.repo("rust-lang/project-error-handling")
161+
.write(&mut self)?;
162+
163+
IssueQuery::new("Area Error Handling")
164+
.labels(&["A-error-handling"])
165+
.repo("rust-lang/rust")
166+
.write(&mut self)?;
167+
168+
IssueQuery::new("PG Error Handling")
169+
.repo("rust-lang/project-error-handling")
170+
.write(&mut self)?;
171+
172+
writeln!(&mut self.agenda,
173+
"## Actions
174+
175+
- [ ] Reply to all issues/PRs discussed in this meeting, or add them to the [open action items](https://hackmd.io/UrERZvi5RwyxfGvo-RtC6g).
176+
"
177+
)?;
178+
179+
writeln!(&mut self.agenda, "_Generated by [fully-automatic-rust-libs-team-triage-meeting-agenda-generator](https://github.com/rust-lang/libs-team/tree/main/tools/agenda-generator)_")?;
180+
Ok(self.agenda)
181+
}
182+
150183
fn fcps(&mut self, label: String) -> Result<()> {
151184
#[derive(Deserialize, Debug)]
152185
pub struct FcpWithInfo {

tools/agenda-generator/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fn main() -> Result<()> {
1111
let agenda = match args.agenda {
1212
AgendaKind::Libs => generator.libs_agenda()?,
1313
AgendaKind::LibsAPI => generator.libs_api_agenda()?,
14+
AgendaKind::PGEH => generator.error_handling_pg_agenda()?,
1415
};
1516
println!("{}", agenda);
1617
Ok(())

0 commit comments

Comments
 (0)