Move CreateReleaseOption to new tree

This commit is contained in:
2025-05-27 20:46:04 -05:00
parent 5f666a8179
commit 5db1134257
3 changed files with 10 additions and 12 deletions
-10
View File
@@ -4,16 +4,6 @@ pub mod cli;
pub mod api;
pub mod structs;
#[derive(Debug, Serialize)]
pub struct CreateReleaseOption {
pub body: String,
pub draft: bool,
pub name: String,
pub prerelease: bool,
pub tag_name: String,
pub target_commitish: String,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct ApiError {
message: String,
+1 -1
View File
@@ -1,4 +1,4 @@
use gt_tools::CreateReleaseOption;
use gt_tools::structs::release::CreateReleaseOption;
use gt_tools::{structs::release::Release, cli::Args};
use reqwest::multipart::Part;
+9 -1
View File
@@ -29,7 +29,15 @@ pub struct Author {
email: String,
}
pub struct CreateReleaseOption;
#[derive(Debug, Serialize)]
pub struct CreateReleaseOption {
pub body: String,
pub draft: bool,
pub name: String,
pub prerelease: bool,
pub tag_name: String,
pub target_commitish: String,
}
pub struct EditReleaseOption;