Răsfoiți Sursa

use existing comment.html_url; remove unnecessary whitespace from template

chaz-kiker 3 ani în urmă
părinte
comite
986d542f9a
2 a modificat fișierele cu 3 adăugiri și 8 ștergeri
  1. 3 5
      src/github.rs
  2. 0 3
      templates/_issues_fcps.tt

+ 3 - 5
src/github.rs

@@ -1090,19 +1090,17 @@ impl<'q> IssuesQuery for Query<'q> {
                             issue.html_url, fcp.fcp.fk_bot_tracking_comment
                         );
                         let bot_tracking_comment_content = quote_reply(&fcp.status_comment.body);
+
                         let fk_initiating_comment = fcp.fcp.fk_initiating_comment;
-                        let initiating_comment_html_url =
-                            format!("{}#issuecomment-{}", issue.html_url, fk_initiating_comment,);
                         let init_comment = issue
                             .get_comment(&client, fk_initiating_comment.try_into()?)
                             .await?;
-                        let initiating_comment_content = quote_reply(&init_comment.body);
 
                         Some(crate::actions::FCPDetails {
                             bot_tracking_comment_html_url,
                             bot_tracking_comment_content,
-                            initiating_comment_html_url,
-                            initiating_comment_content,
+                            initiating_comment_html_url: init_comment.html_url.clone(),
+                            initiating_comment_content: quote_reply(&init_comment.body),
                         })
                     } else {
                         None

+ 0 - 3
templates/_issues_fcps.tt

@@ -8,9 +8,6 @@
 - [**Tracking Comment**]({{issue.fcp_details.bot_tracking_comment_html_url}}): {{issue.fcp_details.bot_tracking_comment_content}}
 - [**Initiating Comment**]({{issue.fcp_details.initiating_comment_html_url}}): {{issue.fcp_details.initiating_comment_content}}
 
-
-
-
 {%else%}
 
 None.