pub enum PrCmd {
Show 19 variants
List {
list: ListArgs,
author: Option<String>,
},
Status {
limit: LimitArgs,
},
View {
number: i64,
web: bool,
merged: bool,
},
Diff {
number: i64,
},
Commits {
number: i64,
limit: LimitArgs,
},
Checkout {
number: i64,
},
Create {
title: Option<String>,
body: Option<String>,
head: Option<String>,
base: Option<String>,
fill: bool,
assignee: Vec<String>,
tester: Vec<String>,
label: Vec<String>,
milestone: Option<String>,
close_issue: Option<String>,
draft: bool,
},
Edit {
number: i64,
title: Option<String>,
body: Option<String>,
assignee: Vec<String>,
tester: Vec<String>,
label: Vec<String>,
milestone: Option<String>,
},
Merge {
number: i64,
squash: bool,
rebase: bool,
no_close_issue: bool,
},
Comment(PrCommentCmd),
Label(PrLabelCmd),
Assignee(PrAssigneeCmd),
Tester(PrTesterCmd),
Approve {
number: i64,
force: bool,
},
Test {
number: i64,
force: bool,
},
Close {
number: i64,
},
Reopen {
number: i64,
},
Ready {
number: i64,
undo: bool,
},
Link {
number: i64,
issue: String,
},
}Variants§
List
Status
Show open PRs relevant to you: created, assigned, awaiting your test.
View
Show details of a pull request.
Fields
Diff
Show the unified diff of a pull request.
Commits
List commits in a pull request (git-log style).
Checkout
Fetch and check out a pull request branch locally.
Create
Create a pull request. –fill derives title/body from commits; without –body/–fill, the repo’s pull request template prefills the body.
Fields
Edit
Edit a pull request’s metadata. At least one flag is required.
Fields
Merge
Comment(PrCommentCmd)
Comment on a pull request.
Label(PrLabelCmd)
Labels attached to a pull request (not repo-level label definitions).
Assignee(PrAssigneeCmd)
Reviewers (审查人) on a pull request. Non-destructive; coexist with
whole-set pr edit --assignee.
Tester(PrTesterCmd)
Testers (测试人) on a pull request. Non-destructive; coexist with
whole-set pr edit --tester.
Approve
Test
Mark a pull request as tested (测试通过). Gitee-specific: approve covers 审查, test covers 测试.
Close
Reopen
Reopen a closed pull request.
Ready
Mark a draft pull request as ready for review (gh-style).
Link
Trait Implementations§
Source§impl FromArgMatches for PrCmd
impl FromArgMatches for PrCmd
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 PrCmd
impl Subcommand for PrCmd
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