Skip to content

Commit bf687d5

Browse files
committed
Determine if issue is PR to avoid refresh pages
1 parent 586e101 commit bf687d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/github/nag.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1219,11 +1219,12 @@ impl<'a> RfcBotComment<'a> {
12191219
}
12201220

12211221
fn add_comment_url(issue: &Issue, msg: &mut String, comment_id: i32) {
1222-
let to_add = format!("https://github.com/{}/issues/{}#issuecomment-{}",
1222+
let url = format!("https://github.com/{}/{}/{}#issuecomment-{}",
12231223
issue.repository,
12241224
issue.number,
1225+
if issue.is_pull_request { "pull" } else { "issues" },
12251226
comment_id);
1226-
msg.push_str(&to_add);
1227+
msg.push_str(&url);
12271228
}
12281229

12291230
fn maybe_add_pfcp_label(&self) {

0 commit comments

Comments
 (0)