From 75d52199d6dd54dc11d97ac90be2ef0ce4aa25ac Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Tue, 14 Oct 2025 15:05:15 -0400 Subject: [PATCH] feat: support reporting the milestone --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.rs b/src/main.rs index 12a1295..feccda6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,6 +44,10 @@ enum Commands { /// Assignees for the GitHub issue (can be specified multiple times) #[arg(short, long, action = clap::ArgAction::Append)] assignee: Vec, + + /// Milestone for the GitHub issue + #[arg(short, long)] + milestone: Option, }, } @@ -64,6 +68,7 @@ impl TryFrom for Action { body, label, assignee, + milestone, } => Ok(Action::Report(Report { title, body: body @@ -71,6 +76,7 @@ impl TryFrom for Action { .unwrap_or_else(|| std::io::read_to_string(std::io::stdin().lock()))?, labels: label, assignees: assignee, + milestone, })), } } @@ -112,6 +118,9 @@ pub struct Report { #[serde(skip_serializing_if = "Vec::is_empty")] assignees: Vec, + + #[serde(skip_serializing_if = "Option::is_none")] + milestone: Option, } const RESOLVER_TIMEOUT: Duration = Duration::from_secs(5);