mirror of
https://gitea.com/gitea/tea.git
synced 2025-10-12 00:45:32 +02:00

committed by
techknowlogick

parent
bbcc689b93
commit
7df0354d6c
18
cmd/pulls.go
18
cmd/pulls.go
@@ -21,25 +21,11 @@ var CmdPulls = cli.Command{
|
||||
Usage: "Operate with pulls of the repository",
|
||||
Description: `Operate with pulls of the repository`,
|
||||
Action: runPulls,
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "login, l",
|
||||
Usage: "Indicate one login, optional when inside a gitea repository",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "repo, r",
|
||||
Usage: "Indicate one repository, optional when inside a gitea repository",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "output, o",
|
||||
Usage: outputUsage,
|
||||
Destination: &output,
|
||||
},
|
||||
},
|
||||
Flags: AllDefaultFlags,
|
||||
}
|
||||
|
||||
func runPulls(ctx *cli.Context) error {
|
||||
login, owner, repo := initCommand(ctx)
|
||||
login, owner, repo := initCommand()
|
||||
|
||||
prs, err := login.Client().ListRepoPullRequests(owner, repo, gitea.ListPullRequestsOptions{
|
||||
Page: 0,
|
||||
|
Reference in New Issue
Block a user