Skip to content

Commit 5626c87

Browse files
authored
Merge pull request #1814 from apiraino/remove-calendar-compiler-triage-agenda
Remove google calendar from compiler triage agenda
2 parents 2830b5d + e9fb82a commit 5626c87

File tree

4 files changed

+5
-94
lines changed

4 files changed

+5
-94
lines changed

src/actions.rs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
use chrono::{DateTime, Duration, Utc};
1+
use chrono::{DateTime, Utc};
22
use std::collections::HashMap;
33
use std::sync::Arc;
44

55
use async_trait::async_trait;
66
use serde::{Deserialize, Serialize};
77
use tera::{Context, Tera};
88

9-
use crate::{
10-
github::{self, GithubClient, Repository},
11-
http_client::{CompilerMeeting, HttpClient},
12-
};
9+
use crate::github::{self, GithubClient, Repository};
1310

1411
#[async_trait]
1512
pub trait Action {
@@ -112,15 +109,6 @@ impl<'a> Action for Step<'a> {
112109
async fn call(&self) -> anyhow::Result<String> {
113110
let gh = GithubClient::new_from_env();
114111

115-
// retrieve all Rust compiler meetings
116-
// from today for 7 days
117-
let today: chrono::DateTime<chrono::Local> = chrono::Local::now();
118-
let tcompiler_meetings: Vec<CompilerMeeting> =
119-
CompilerMeeting::get_meetings(today, today + Duration::days(7))
120-
.await
121-
.map_err(|e| format!("Meetings couldn't be retrieved: {:?}", e))
122-
.unwrap_or_default();
123-
124112
let mut context = Context::new();
125113
let mut results = HashMap::new();
126114

@@ -196,9 +184,6 @@ impl<'a> Action for Step<'a> {
196184
let date = chrono::Utc::today().format("%Y-%m-%d").to_string();
197185
context.insert("CURRENT_DATE", &date);
198186

199-
// populate T-compiler meetings
200-
context.insert("meetings_tcompiler", &tcompiler_meetings);
201-
202187
Ok(TEMPLATES
203188
.render(&format!("{}.tt", self.name), &context)
204189
.unwrap())

src/http_client/mod.rs

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub mod config;
1919
pub mod db;
2020
pub mod github;
2121
pub mod handlers;
22-
pub mod http_client;
2322
pub mod interactions;
2423
pub mod jobs;
2524
pub mod notification_listing;

templates/prioritization_agenda.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ note_id: xxx
1212

1313
## Announcements
1414

15-
- (TIP) add here non-recurrent scheduled meetings, [check the schedule calendar](https://calendar.google.com/calendar/htmlembed?src=6u5rrtce6lrtv07pfi3damgjus%40group.calendar.google.com)
15+
- (TIP) add here non-recurrent scheduled meetings, [check the schedule calendar](https://github.com/rust-lang/calendar)
1616
- (TIP) mention upcoming Rust stable releases, [check the release calendar](https://calendar.google.com/calendar/htmlembed?src=l1b1gkqvfbgunjs18nemq4c580%40group.calendar.google.com)
1717
- Reminder: if you see a PR/issue that seems like there might be legal implications due to copyright/IP/etc, please let us know (or at least message @_**davidtwco** or @_**Wesley Wiser** so we can pass it along).
1818

19-
### Other WG meetings ([calendar link](https://calendar.google.com/calendar/embed?src=6u5rrtce6lrtv07pfi3damgjus%40group.calendar.google.com))
19+
### Other WG meetings
2020

21-
{{-meetings::render(meetings=meetings_tcompiler, empty="No meetings scheduled for next week")}}
21+
- (TIP) get them from https://github.com/rust-lang/calendar
2222

2323
## MCPs/FCPs
2424

0 commit comments

Comments
 (0)