Skip to content

Commit

Permalink
Merge pull request #1741 from jackh726/types-agenda-url
Browse files Browse the repository at this point in the history
Add types planning url
  • Loading branch information
Mark-Simulacrum authored Nov 5, 2023
2 parents 911256e + 23b7ab9 commit 619e2f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/agenda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ pub static INDEX: &str = r#"
<ul>
<li><a href="/agenda/lang/triage">T-lang triage agenda</a></li>
<li><a href="/agenda/lang/planning">T-lang planning agenda</a></li>
<li><a href="/agenda/types/planning">T-types planning agenda</a></li>
</ul>
</body>
</html>
Expand Down
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ async fn handle_agenda_request(req: String) -> anyhow::Result<String> {
if req == "/agenda/lang/planning" {
return triagebot::agenda::lang_planning().call().await;
}
if req == "/agenda/types/planning" {
return triagebot::agenda::types_planning().call().await;
}

anyhow::bail!("Unknown agenda; see /agenda for index.")
}
Expand Down Expand Up @@ -53,7 +56,10 @@ async fn serve_req(
.body(Body::from(triagebot::agenda::INDEX))
.unwrap());
}
if req.uri.path() == "/agenda/lang/triage" || req.uri.path() == "/agenda/lang/planning" {
if req.uri.path() == "/agenda/lang/triage"
|| req.uri.path() == "/agenda/lang/planning"
|| req.uri.path() == "/agenda/types/planning"
{
match agenda
.ready()
.await
Expand Down

0 comments on commit 619e2f1

Please sign in to comment.