mirror of
https://gitea.com/jolheiser/sip
synced 2024-11-22 19:51:58 +01:00
0a6162ad05
Add CSV output Refactor requireToken and add release creation Start releases Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: jolheiser <john.olheiser@gmail.com> Reviewed-on: https://gitea.com/jolheiser/sip/pulls/16
31 lines
534 B
Go
31 lines
534 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
var Pulls = cli.Command{
|
|
Name: "pulls",
|
|
Aliases: []string{"pull", "pr"},
|
|
Usage: "Commands for interacting with pull requests",
|
|
Action: doPullsSearch,
|
|
Subcommands: []*cli.Command{
|
|
&PullsCreate,
|
|
&PullsStatus,
|
|
&PullsCheckout,
|
|
},
|
|
Flags: []cli.Flag{
|
|
&cli.StringFlag{
|
|
Name: "csv",
|
|
Usage: "Output results to a CSV file",
|
|
},
|
|
},
|
|
}
|
|
|
|
func doPullsSearch(ctx *cli.Context) error {
|
|
if _, err := issuesSearch(ctx, true); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|