Skip to content

Commit 779fc80

Browse files
authored
Merge pull request #1862 from apiraino/lint-archived-team
Suggest removing team leads when archiving a team
2 parents 973729a + 6dc9c45 commit 779fc80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/validate.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ fn validate_archived_teams(data: &Data, errors: &mut Vec<String>) {
295295
if !team.members(data)?.is_empty() {
296296
bail!("archived team '{}' must not have current members; please move members to that team's alumni", team.name());
297297
}
298+
if !team.leads().is_empty() {
299+
bail!("archived team '{}' must not have team leads; please move members to that team's alumni", team.name());
300+
}
298301
Ok(())
299302
})
300303
}

0 commit comments

Comments
 (0)