diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-01-07 22:08:56 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-01-07 22:08:56 +0100 |
| commit | 5203148ffdd8e27ae158d7bfb8527508a716ce6c (patch) | |
| tree | f076887196c9fd2d8864f55059ee1c46c8a329b5 /server/src/api_model.rs | |
| parent | 13056242ab976b766bbff345d9b22e3aa9ad4a94 (diff) | |
Add remote & branch to project and review
Preparing for git connection.
Diffstat (limited to 'server/src/api_model.rs')
| -rw-r--r-- | server/src/api_model.rs | 12 |
1 files changed, 12 insertions, 0 deletions
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<ProjectUserEntry>, } @@ -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)] |
