Skip to content

Commit db8d69f

Browse files
authored
link to relevant part of rustc dev guide in modified submodule warning
this makes finding this section when it is needed much easier for new contributors.
1 parent 0f75748 commit db8d69f

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)