diff options
author | Pietro Albini <pietro@pietroalbini.org> | 2019-07-17 12:06:29 +0200 |
---|---|---|
committer | Pietro Albini <pietro@pietroalbini.org> | 2019-07-17 12:06:29 +0200 |
commit | 9c657f238d9a1354536dcb0a2e89adf5dd6cef4b (patch) | |
tree | a2269b492fe462fb09a09ee89e453a07f4c30b71 /rust_team_data | |
parent | 732feec5e8db47846ae2fbfe69fbf028090a809d (diff) |
add github teams in the schema and the api
This will allow synchronization tools for GitHub teams to be built. No
teams are currently configured to be synchronized.
Diffstat (limited to 'rust_team_data')
-rw-r--r-- | rust_team_data/src/v1.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rust_team_data/src/v1.rs b/rust_team_data/src/v1.rs index 839c66d..b582f4f 100644 --- a/rust_team_data/src/v1.rs +++ b/rust_team_data/src/v1.rs @@ -16,6 +16,7 @@ pub struct Team { pub kind: TeamKind, pub subteam_of: Option<String>, pub members: Vec<TeamMember>, + pub github: Option<TeamGitHub>, pub website_data: Option<TeamWebsite>, } @@ -28,6 +29,17 @@ pub struct TeamMember { } #[derive(Debug, Clone, Serialize, Deserialize)] +pub struct TeamGitHub { + pub teams: Vec<GitHubTeam>, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct GitHubTeam { + pub org: String, + pub name: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct TeamWebsite { pub name: String, pub description: String, |