issues

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdIssuesClose = cli.Command{
	Name:        "close",
	Usage:       "Change state of one ore more issues to 'closed'",
	Description: `Change state of one ore more issues to 'closed'`,
	ArgsUsage:   "<issue index> [<issue index>...]",
	Action: func(ctx stdctx.Context, cmd *cli.Command) error {
		var s = gitea.StateClosed
		return editIssueState(ctx, cmd, gitea.EditIssueOption{State: &s})
	},
	Flags: flags.AllDefaultFlags,
}

CmdIssuesClose represents a sub command of issues to close an issue

View Source
var CmdIssuesCreate = cli.Command{
	Name:        "create",
	Aliases:     []string{"c"},
	Usage:       "Create an issue on repository",
	Description: `Create an issue on repository`,
	ArgsUsage:   " ",
	Action:      runIssuesCreate,
	Flags:       flags.IssuePRCreateFlags,
}

CmdIssuesCreate represents a sub command of issues to create issue

View Source
var CmdIssuesEdit = cli.Command{
	Name:    "edit",
	Aliases: []string{"e"},
	Usage:   "Edit one or more issues",
	Description: `Edit one or more issues. To unset a property again,
use an empty string (eg. --milestone "").`,
	ArgsUsage: "<idx> [<idx>...]",
	Action:    runIssuesEdit,
	Flags:     flags.IssuePREditFlags,
}

CmdIssuesEdit is the subcommand of issues to edit issues

View Source
var CmdIssuesList = cli.Command{
	Name:        "list",
	Aliases:     []string{"ls"},
	Usage:       "List issues of the repository",
	Description: `List issues of the repository`,
	ArgsUsage:   " ",
	Action:      RunIssuesList,
	Flags:       append([]cli.Flag{issueFieldsFlag}, flags.IssueListingFlags...),
}

CmdIssuesList represents a sub command of issues to list issues

View Source
var CmdIssuesReopen = cli.Command{
	Name:        "reopen",
	Aliases:     []string{"open"},
	Usage:       "Change state of one or more issues to 'open'",
	Description: `Change state of one or more issues to 'open'`,
	ArgsUsage:   "<issue index> [<issue index>...]",
	Action: func(ctx context.Context, cmd *cli.Command) error {
		var s = gitea.StateOpen
		return editIssueState(ctx, cmd, gitea.EditIssueOption{State: &s})
	},
	Flags: flags.AllDefaultFlags,
}

CmdIssuesReopen represents a sub command of issues to open an issue

Functions

func RunIssuesList

func RunIssuesList(_ stdctx.Context, cmd *cli.Command) error

RunIssuesList list issues

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL