Skip to content

Commit 22f78f4

Browse files
Merge pull request #1691 from ehuss/team-website
Add all teams to the website
2 parents d05d17b + a4a80f1 commit 22f78f4

28 files changed

+207
-9
lines changed

docs/toml-schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ping = "rust-lang/cargo"
119119
# Team members to be excluded from FCPs
120120
exclude-members = ["some-team-member"]
121121

122-
# Information about the team to display on the www.rust-lang.org website.
122+
# Information about the team to display on the www.rust-lang.org website (required except marker teams).
123123
[website]
124124
# The name of the team to display on the website (required).
125125
name = "Language team"

src/validate.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static CHECKS: &[Check<fn(&Data, &mut Vec<String>)>] = checks![
5151
validate_repos,
5252
validate_branch_protections,
5353
validate_member_roles,
54+
validate_website,
5455
];
5556

5657
#[allow(clippy::type_complexity)]
@@ -1040,3 +1041,16 @@ where
10401041
}
10411042
}
10421043
}
1044+
1045+
fn validate_website(data: &Data, errors: &mut Vec<String>) {
1046+
wrapper(data.teams(), errors, |team, _| {
1047+
match team.kind() {
1048+
TeamKind::MarkerTeam => return Ok(()),
1049+
TeamKind::Team | TeamKind::WorkingGroup | TeamKind::ProjectGroup => {}
1050+
};
1051+
if team.website_data().is_none() {
1052+
bail!("team `{}` should have a `[website]` table", team.name());
1053+
}
1054+
Ok(())
1055+
})
1056+
}

teams/book.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ alumni = []
1111

1212
[[github]]
1313
orgs = ["rust-lang"]
14+
15+
[website]
16+
name = "Book team"
17+
description = "Maintains The Rust Programming Language book"
18+
repo = "https://github.com/rust-lang/book"

teams/codegen-c-maintainers.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ alumni = []
1111

1212
[[github]]
1313
orgs = ["rust-lang"]
14+
15+
[website]
16+
name = "Codegen C Maintainers"
17+
description = "Developing the C based backend for rustc"
18+
repo = "https://github.com/rust-lang/rustc_codegen_c"

teams/community.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,8 @@ extra-people = [
7979
[[discord-roles]]
8080
name = "community-team"
8181
color = "#c27c0e"
82+
83+
[website]
84+
name = "Community team"
85+
description = "Engagement with the Rust community"
86+
repo = "https://github.com/rust-community/team"

teams/compiler-fcp.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ alumni = []
2424
label = "T-compiler"
2525
name = "Compiler"
2626
ping = "rust-lang/compiler-fcp"
27+
28+
[website]
29+
name = "Compiler FCP team"
30+
description = "Compiler team members with responsibility for signing off on major compiler changes"
31+
repo = "http://github.com/rust-lang/compiler-team"
32+
zulip-stream = "t-compiler"

teams/docker.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ alumni = []
1111

1212
[[github]]
1313
orgs = ["rust-lang"]
14+
15+
[website]
16+
name = "Docker team"
17+
description = "Maintains the official Docker images published to Docker Hub"
18+
repo = "https://github.com/rust-lang/docker-rust/"

teams/docs-rs-reviewers.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ alumni = [
1313

1414
[[github]]
1515
orgs = ["rust-lang"]
16+
17+
[website]
18+
name = "Docs.rs reviewers"
19+
description = "Docs.rs team members responsible for reviews"
20+
repo = "https://github.com/rust-lang/docs.rs"
21+
zulip-stream = "t-docs-rs"

teams/infra-bors.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ alumni = []
1212

1313
[[github]]
1414
orgs = ["rust-lang"]
15+
16+
[website]
17+
name = "Bors team"
18+
description = "Develops the bors merge bot"
19+
repo = "https://github.com/rust-lang/bors"

teams/mentors.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ alumni = []
1919

2020
[[zulip-groups]]
2121
name = "gsoc-mentors"
22+
23+
[website]
24+
name = "Mentors team"
25+
description = "Mentors for the mentorship and internship programs"

0 commit comments

Comments
 (0)