瀏覽代碼

Merge pull request #733 from JohnTitor/issue-link

glacier: Add `rust-lang/rust` prefixes to the issue number
Mark Rousskov 4 年之前
父節點
當前提交
f627152bd0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/handlers/glacier.rs

+ 3 - 3
src/handlers/glacier.rs

@@ -51,7 +51,7 @@ pub(super) async fn handle_command(
     .await?;
     fork.create_file(
         format!("ices/{}.rs", number),
-        format!("Add ICE reproduction for issue #{}.", number),
+        format!("Add ICE reproduction for issue rust-lang/rust#{}.", number),
         body,
     )
     .branch(format!("triagebot-ice-{}", number))
@@ -61,12 +61,12 @@ pub(super) async fn handle_command(
     octocrab
         .pulls("rust-lang", "glacier")
         .create(
-            format!("ICE - {}", number),
+            format!("ICE - rust-lang/rust#{}", number),
             format!("rustbot:triagebot-ice-{}", number),
             "master",
         )
         .body(format!(
-            "Automatically created by @{} in issue #{}",
+            "Automatically created by @{} in issue rust-lang/rust#{}",
             user.login, number
         ))
         .send()