We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76c141b commit e414f24Copy full SHA for e414f24
src/github/nag.rs
@@ -1219,11 +1219,13 @@ impl<'a> RfcBotComment<'a> {
1219
}
1220
1221
fn add_comment_url(issue: &Issue, msg: &mut String, comment_id: i32) {
1222
- let url = format!("https://github.com/{}/{}/{}#issuecomment-{}",
1223
- issue.repository,
1224
- issue.number,
1225
- if issue.is_pull_request { "pull" } else { "issues" },
1226
- comment_id);
+ let url = format!(
+ "https://github.com/{repo}/{typ}/{number}#issuecomment-{id}",
+ repo = issue.repository,
+ typ = if issue.is_pull_request { "pull" } else { "issues" },
+ number = issue.number,
1227
+ id = comment_id,
1228
+ );
1229
msg.push_str(&url);
1230
1231
0 commit comments