Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/handlers/check_commits/modified_submodule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use regex::{Regex, RegexBuilder};

use crate::github::FileDiff;

const SUBMODULE_WARNING_MSG: &str = "Some commits in this PR modify **submodules**.";
const SUBMODULE_WARNING_MSG: &str = "Some commits in this PR modify **submodules**.

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.
";

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