瀏覽代碼

Merge pull request #914 from LeSeulArtichaut/mcp-ping

Allow MCP "consumers" to add extra text to MCP comment
Mark Rousskov 4 年之前
父節點
當前提交
f53b1873b9
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      src/config.rs
  2. 2 0
      src/handlers/major_change.rs

+ 1 - 0
src/config.rs

@@ -132,6 +132,7 @@ pub(crate) struct MajorChangeConfig {
     pub(crate) second_label: String,
     pub(crate) meeting_label: String,
     pub(crate) zulip_stream: u64,
+    pub(crate) open_extra_text: Option<String>,
 }
 
 #[derive(PartialEq, Eq, Debug, serde::Deserialize)]

+ 2 - 0
src/handlers/major_change.rs

@@ -189,7 +189,9 @@ async fn handle(
         procedural comments, such as volunteering to review, indicating that you \
         second the proposal (or third, etc), or raising a concern that you would \
         like to be addressed. \
+        \n\n{} \
         \n\n[stream]: {}",
+            config.open_extra_text.as_deref().unwrap_or_default(),
             topic_url
         );
         issue