Files
windmill/backend/windmill-common/src/workspaces.rs
Guillaume Bouvignies 86326c1652 feat: Git sync exclude certain type per repository (#3210)
* feat: Git sync exclude certain type per repository

* sync secret and variable

* remove bind:disabled
2024-02-14 14:28:04 +01:00

31 lines
767 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct WorkspaceGitSyncSettings {
pub include_path: Vec<String>,
pub include_type: Vec<ObjectType>,
pub repositories: Vec<GitRepositorySettings>,
}
#[derive(Serialize, Deserialize, PartialEq, Debug)]
#[serde(rename_all(serialize = "lowercase", deserialize = "lowercase"))]
pub enum ObjectType {
Script,
Flow,
App,
Folder,
Resource,
Variable,
Secret,
Schedule,
ResourceType,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct GitRepositorySettings {
pub script_path: String,
pub git_repo_resource_path: String,
pub use_individual_branch: Option<bool>,
pub exclude_types_override: Option<Vec<ObjectType>>,
}