fc-common: consolidate database migrations; simplify
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia808d76241cec6e8760d87443bb0dc976a6a6964
This commit is contained in:
parent
757feae90d
commit
e7425e0abf
22 changed files with 656 additions and 671 deletions
|
|
@ -131,7 +131,7 @@ impl std::fmt::Debug for GitHubOAuthConfig {
|
|||
#[serde(default)]
|
||||
#[derive(Default)]
|
||||
pub struct NotificationsConfig {
|
||||
pub run_command: Option<String>,
|
||||
pub webhook_url: Option<String>,
|
||||
pub github_token: Option<String>,
|
||||
pub gitea_url: Option<String>,
|
||||
pub gitea_token: Option<String>,
|
||||
|
|
@ -304,8 +304,8 @@ pub struct DeclarativeProject {
|
|||
/// Declarative notification configuration.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct DeclarativeNotification {
|
||||
/// Notification type: `github_status`, email, `gitlab_status`,
|
||||
/// `gitea_status`, `run_command`
|
||||
/// Notification type: `github_status`, `email`, `gitlab_status`,
|
||||
/// `gitea_status`, `webhook`
|
||||
pub notification_type: String,
|
||||
/// Type-specific configuration (JSON object)
|
||||
pub config: serde_json::Value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue