Jelajahi Sumber

Remove compiler-team specific details from major change

Mark Rousskov 4 tahun lalu
induk
melakukan
1d065aad12
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  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()
                 ),