Procházet zdrojové kódy

Remove compiler-team specific details from major change

Mark Rousskov před 4 roky
rodič
revize
1d065aad12
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 1 0
      src/config.rs
  2. 3 2
      src/handlers/major_change.rs

+ 1 - 0
src/config.rs

@@ -126,6 +126,7 @@ pub(crate) struct NotifyZulipLabelConfig {
 
 #[derive(PartialEq, Eq, Debug, serde::Deserialize)]
 pub(crate) struct MajorChangeConfig {
+    pub(crate) zulip_ping: String,
     pub(crate) second_label: String,
     pub(crate) meeting_label: String,
     pub(crate) zulip_stream: u64,

+ 3 - 2
src/handlers/major_change.rs

@@ -113,7 +113,8 @@ async fn handle_input(
             }
 
             (format!(
-                "@*T-compiler*: Proposal [#{}]({}) has been seconded, and will be approved in 10 days if no objections are raised.",
+                "@*{}*: Proposal [#{}]({}) has been seconded, and will be approved in 10 days if no objections are raised.",
+                config.zulip_ping,
                 issue.number,
                 event.html_url().unwrap()
             ), config.second_label.clone())
@@ -133,7 +134,7 @@ async fn handle_input(
                 announced at the next meeting to try and draw attention to it,
                 but usually MCPs are not discussed during triage meetings. If
                 you think this would benefit from discussion amongst the
-                compiler team, consider proposing a design meeting.",
+                team, consider proposing a design meeting.",
                     issue.number,
                     event.html_url().unwrap()
                 ),