pub enum IssueCmd {
List {
list: ListArgs,
assignee: Option<String>,
},
Status {
limit: LimitArgs,
},
View {
number: String,
web: bool,
},
Create {
title: Option<String>,
body: Option<String>,
assignee: Option<String>,
labels: Option<String>,
milestone: Option<String>,
security_hole: bool,
},
Edit {
number: String,
title: Option<String>,
body: Option<String>,
assignee: Option<String>,
label: Vec<String>,
milestone: Option<String>,
security_hole: bool,
state: Option<String>,
},
Close {
number: String,
},
Reopen {
number: String,
},
Link {
number: String,
pr: i64,
},
Comment(IssueCommentCmd),
Label(IssueLabelCmd),
}Variants§
List
Status
Show open issues relevant to you: created by me, assigned to me.
View
Show details of an issue.
Create
Fields
Edit
Edit an issue’s metadata. At least one flag is required.
State changes use PATCH /repos/{owner}/issues/{number} with a JSON
body {repo, title, state} (current title must be echoed). Do not use
form fields on /repos/{owner}/{repo}/issues/{number} — that path
often returns an opaque project or enterprise 404.
Gitee v5 write limit: the live issue-update API only accepts
open | progressing | closed. rejected is not a valid write
value (HTTP 400 state does not have a valid value). Closing always
maps to Chinese lifecycle 已完成 — there is no API close-reason for
拒绝 / wontfix; use a repo label (e.g. wontfix) for that intent.
Fields
Close
Reopen
Reopen a closed issue.
Link
Comment(IssueCommentCmd)
Comment on an issue.
Label(IssueLabelCmd)
Labels attached to an issue (not repo-level label definitions).
Trait Implementations§
Source§impl FromArgMatches for IssueCmd
impl FromArgMatches for IssueCmd
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for IssueCmd
impl Subcommand for IssueCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand