Skip to content

Commit b92d7a9

Browse files
authored
Merge pull request #2034 from Urgau/clarify-issue_links_in_commits
Improve and clarify issue links in commits warning
2 parents 0e2fee2 + e1d8146 commit b92d7a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/handlers/check_commits/issue_links.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub(super) fn issue_links_in_commits(
3333
} else {
3434
Some(format!(
3535
r"There are issue links (such as `#123`) in the commit messages of the following commits.
36-
*Please remove them as they will spam the issue with references to the commit.*
36+
*Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.*
3737
{issue_links_commits}",
3838
))
3939
}
@@ -78,7 +78,7 @@ fn test_mentions_in_commits() {
7878
issue_links_in_commits(&config, &commits),
7979
Some(
8080
r"There are issue links (such as `#123`) in the commit messages of the following commits.
81-
*Please remove them as they will spam the issue with references to the commit.*
81+
*Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.*
8282
- d7daa17bc97df9377640b0d33cbd0bbeed703c3a
8383
".to_string()
8484
)
@@ -103,7 +103,7 @@ fn test_mentions_in_commits() {
103103
issue_links_in_commits(&config, &commits),
104104
Some(
105105
r"There are issue links (such as `#123`) in the commit messages of the following commits.
106-
*Please remove them as they will spam the issue with references to the commit.*
106+
*Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.*
107107
- d7daa17bc97df9377640b0d33cbd0bbeed703c3a
108108
- 891f0916a07c215ae8173f782251422f1fea6acb
109109
".to_string()

0 commit comments

Comments
 (0)