浏览代码

Remove compiler-team specific details from major change

Mark Rousskov 4 年之前
父节点
当前提交
1d065aad12
共有 2 个文件被更改,包括 4 次插入2 次删除
  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()
                 ),