From 5203148ffdd8e27ae158d7bfb8527508a716ce6c Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 7 Jan 2025 22:08:56 +0100 Subject: Add remote & branch to project and review Preparing for git connection. --- server/src/api_model.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'server/src/api_model.rs') diff --git a/server/src/api_model.rs b/server/src/api_model.rs index b08ad5c..1b0d7b2 100644 --- a/server/src/api_model.rs +++ b/server/src/api_model.rs @@ -62,6 +62,10 @@ pub struct Review { pub state: ReviewState, #[schema(example = 37.5)] pub progress: f32, + #[schema(example = "r/user/TASK-123456")] + pub branch: String, + #[schema(example = false)] + pub archived: bool, } #[derive(Serialize, ToSchema)] @@ -115,6 +119,10 @@ pub struct Project { pub title: String, #[schema(example = "Example project")] pub description: String, + #[schema(example = "ssh://git.example.org/srv/git/")] + pub remote: String, + #[schema(example = "main")] + pub main_branch: String, pub users: Vec, } @@ -124,6 +132,10 @@ pub struct ProjectData<'r> { pub title: Option<&'r str>, #[schema(example = "Example project")] pub description: Option<&'r str>, + #[schema(example = "ssh://git.example.org/srv/git/")] + pub remote: Option<&'r str>, + #[schema(example = "main")] + pub main_branch: Option<&'r str>, } #[derive(Deserialize, Serialize, ToSchema)] -- cgit v1.2.3-70-g09d2