Skip to content

Commit b6a3313

Browse files
committed
check that the Tracking issue row points to rust-project-goals repo
1 parent 85187bf commit b6a3313

File tree

1 file changed

+9
-0
lines changed
  • crates/rust-project-goals/src

1 file changed

+9
-0
lines changed

crates/rust-project-goals/src/goal.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,15 @@ fn extract_metadata(sections: &[Section]) -> Result<Option<Metadata>> {
451451
spanned::bail!(r[1], "accepted goals cannot have an empty tracking issue");
452452
}
453453

454+
if has_tracking_issue && !r[1].contains("rust-project-goals#") {
455+
spanned::bail!(
456+
r[1],
457+
"tracking issues are issues in the rust-project-goals repository. \
458+
The `{}` issue can go in the `Other tracking issues` row.",
459+
r[1].as_str(),
460+
);
461+
}
462+
454463
// For the others, it's of course optional.
455464
if has_tracking_issue {
456465
Some(r[1].parse()?.content)

0 commit comments

Comments
 (0)