Skip to content

Commit 61e05ec

Browse files
authored
Merge pull request #2130 from lolbinarycat/patch-2
link to relevant part of rustc dev guide in modified submodule warning
2 parents 0f75748 + db8d69f commit 61e05ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/handlers/check_commits/modified_submodule.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ use regex::{Regex, RegexBuilder};
44

55
use crate::github::FileDiff;
66

7-
const SUBMODULE_WARNING_MSG: &str = "Some commits in this PR modify **submodules**.";
7+
const SUBMODULE_WARNING_MSG: &str = "Some commits in this PR modify **submodules**.
8+
9+
If this was not intentional, see [I changed a submodule on accident](https://rustc-dev-guide.rust-lang.org/git.html#i-changed-a-submodule-by-accident) in the rustc dev guide.
10+
";
811

912
static SUBPROJECT_COMMIT_RE: LazyLock<Regex> = LazyLock::new(|| {
1013
RegexBuilder::new(r"^\+Subproject commit [a-zA-Z0-9]+$")

0 commit comments

Comments
 (0)