Skip to main content

workyard_application/actions/create/
input.rs

1use schemars::JsonSchema;
2use serde::Deserialize;
3use trine::NativePath;
4
5use crate::contracts::RepositoryInput;
6
7/// Task branch, repository selectors and starting revisions for creation or checkout.
8#[derive(Deserialize, JsonSchema)]
9#[serde(deny_unknown_fields)]
10pub struct CreateInput {
11	/// Task selected for this operation.
12	pub task: String,
13	/// Tracked project references or explicit repository paths.
14	#[serde(default)]
15	pub projects: Vec<NativePath>,
16	/// Backing repositories selected for membership.
17	#[serde(default)]
18	pub repositories: Vec<RepositoryInput>,
19	/// Explicit workspace directory containing .workyard.
20	pub workspace: Option<NativePath>,
21	/// Reuse an existing target branch when available.
22	#[serde(default)]
23	pub checkout: bool,
24	/// Skip fetching from remotes.
25	#[serde(default)]
26	pub no_fetch: bool,
27	/// Default remote for the supplied repositories.
28	pub remote: Option<String>,
29	/// Starting reference for new branches.
30	pub from: Option<String>,
31}