cod_cli/pull_request/
create.rs

1use clap::Parser;
2
3/// Create a pull request
4#[derive(Parser, Debug)]
5pub struct CreatePullRequestArgs {
6    /// Comma-delimited list of assignee names
7    #[arg(short, long, value_name = "ASSIGNEE,...", value_delimiter = ',')]
8    pub assignees: Option<Vec<String>>,
9
10    /// Target branch for the pull request
11    #[arg(short, long)]
12    pub target_branch: Option<String>,
13
14    /// Main description of the pull request
15    #[arg(id = "description", short, long)]
16    pub body: Option<String>,
17
18    /// Source branch of the pull request
19    #[arg(short, long)]
20    pub source_branch: Option<String>,
21
22    /// Comma-delimited list of labels
23    #[arg(short, long, value_name = "LABEL,...", value_delimiter = ',')]
24    pub labels: Option<Vec<String>>,
25
26    /// Title or summary
27    #[arg(long)]
28    pub title: Option<String>,
29
30    /// Name of the milestone the pull request is related to
31    #[arg(short, long)]
32    pub milestone: Option<String>,
33}