mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-02 09:58:29 +02:00
make issues & pulls subcommands consistent (#188)
Merge branch 'master' into pr-details make issues & pulls subcommands consistent - by default list open items - show detail when argument is provided - expose listing as ls subcommand - accept --state flag on command and ls subcommand Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/188 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@ -28,7 +28,7 @@ var CmdIssues = cli.Command{
|
||||
&CmdIssuesReopen,
|
||||
&CmdIssuesClose,
|
||||
},
|
||||
Flags: AllDefaultFlags,
|
||||
Flags: IssuePRFlags,
|
||||
}
|
||||
|
||||
// CmdIssuesList represents a sub command of issues to list issues
|
||||
@ -37,13 +37,7 @@ var CmdIssuesList = cli.Command{
|
||||
Usage: "List issues of the repository",
|
||||
Description: `List issues of the repository`,
|
||||
Action: runIssuesList,
|
||||
Flags: append([]cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "state",
|
||||
Usage: "Filter by issue state (all|open|closed)",
|
||||
DefaultText: "open",
|
||||
},
|
||||
}, AllDefaultFlags...),
|
||||
Flags: IssuePRFlags,
|
||||
}
|
||||
|
||||
func runIssues(ctx *cli.Context) error {
|
||||
|
Reference in New Issue
Block a user