-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiple organizations
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
- Loading branch information
Showing
20 changed files
with
912 additions
and
773 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This module defines some types that represent parts of the configuration. | ||
|
||
use serde::{Deserialize, Serialize}; | ||
|
||
/// Organization configuration. | ||
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)] | ||
#[serde(rename_all(deserialize = "camelCase"))] | ||
pub struct Organization { | ||
pub name: String, | ||
pub installation_id: i64, | ||
pub repository: String, | ||
pub branch: String, | ||
pub legacy: Legacy, | ||
} | ||
|
||
/// Organization legacy configuration. | ||
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)] | ||
#[serde(rename_all(deserialize = "camelCase"))] | ||
pub struct Legacy { | ||
pub enabled: bool, | ||
pub sheriff_permissions_path: String, | ||
pub cncf_people_path: Option<String>, | ||
} | ||
|
||
/// GitHub application configuration. | ||
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)] | ||
#[serde(rename_all(deserialize = "camelCase"))] | ||
pub struct GitHubApp { | ||
pub app_id: i64, | ||
pub private_key: String, | ||
pub webhook_secret: String, | ||
} |
Oops, something went wrong.