From 5db11342573808e2a1156d00d8a89284bb18dbfd Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 27 May 2025 20:45:34 -0500 Subject: [PATCH] Move CreateReleaseOption to new tree --- src/lib.rs | 10 ---------- src/main.rs | 2 +- src/structs/release.rs | 10 +++++++++- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ece927e..6b246a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, diff --git a/src/main.rs b/src/main.rs index 8bf8356..b774311 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; diff --git a/src/structs/release.rs b/src/structs/release.rs index fb02db7..7913276 100644 --- a/src/structs/release.rs +++ b/src/structs/release.rs @@ -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;