Skip to content

Commit

Permalink
Merge pull request #1814 from apiraino/remove-calendar-compiler-triag…
Browse files Browse the repository at this point in the history
…e-agenda

Remove google calendar from compiler triage agenda
  • Loading branch information
jackh726 authored May 16, 2024
2 parents 2830b5d + e9fb82a commit 5626c87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 94 deletions.
19 changes: 2 additions & 17 deletions src/actions.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
use chrono::{DateTime, Duration, Utc};
use chrono::{DateTime, Utc};
use std::collections::HashMap;
use std::sync::Arc;

use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use tera::{Context, Tera};

use crate::{
github::{self, GithubClient, Repository},
http_client::{CompilerMeeting, HttpClient},
};
use crate::github::{self, GithubClient, Repository};

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

// retrieve all Rust compiler meetings
// from today for 7 days
let today: chrono::DateTime<chrono::Local> = chrono::Local::now();
let tcompiler_meetings: Vec<CompilerMeeting> =
CompilerMeeting::get_meetings(today, today + Duration::days(7))
.await
.map_err(|e| format!("Meetings couldn't be retrieved: {:?}", e))
.unwrap_or_default();

let mut context = Context::new();
let mut results = HashMap::new();

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

// populate T-compiler meetings
context.insert("meetings_tcompiler", &tcompiler_meetings);

Ok(TEMPLATES
.render(&format!("{}.tt", self.name), &context)
.unwrap())
Expand Down
73 changes: 0 additions & 73 deletions src/http_client/mod.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pub mod config;
pub mod db;
pub mod github;
pub mod handlers;
pub mod http_client;
pub mod interactions;
pub mod jobs;
pub mod notification_listing;
Expand Down
6 changes: 3 additions & 3 deletions templates/prioritization_agenda.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ note_id: xxx

## Announcements

- (TIP) add here non-recurrent scheduled meetings, [check the schedule calendar](https://calendar.google.com/calendar/htmlembed?src=6u5rrtce6lrtv07pfi3damgjus%40group.calendar.google.com)
- (TIP) add here non-recurrent scheduled meetings, [check the schedule calendar](https://github.com/rust-lang/calendar)
- (TIP) mention upcoming Rust stable releases, [check the release calendar](https://calendar.google.com/calendar/htmlembed?src=l1b1gkqvfbgunjs18nemq4c580%40group.calendar.google.com)
- 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).

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

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

## MCPs/FCPs

Expand Down

0 comments on commit 5626c87

Please sign in to comment.