cmd

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: ISC Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("resource not found")

ErrNotFound is returned when a resource is not found.

Functions

func NewCreateProjectIssueCmd

func NewCreateProjectIssueCmd() *cobra.Command

NewCreateProjectIssueCmd creates a new command for creating a project issue.

func NewDeleteAllRunsCmd

func NewDeleteAllRunsCmd() *cobra.Command

NewDeleteAllRunsCmd creates a new command for deleting workflow runs.

func NewSetAuthCmd

func NewSetAuthCmd() *cobra.Command

NewSetAuthCmd creates a new command for setting the GitHub personal access token.

func NewSyncForksCmd added in v0.3.0

func NewSyncForksCmd() *cobra.Command

NewSyncForksCmd creates a new command for syncing forks.

Types

type Project

type Project struct {
	ID     githubv4.ID
	Title  githubv4.String
	Fields struct {
		Nodes []ProjectField
	} `graphql:"fields(first: 100)"`
	URL githubv4.URI
}

Project is a GitHub project, see https://docs.github.com/en/graphql/reference/objects#projectv2.

type ProjectField

type ProjectField struct {
	Typename             githubv4.String `graphql:"__typename"`
	ProjectV2FieldCommon `graphql:"... on ProjectV2FieldCommon"`
	Iteration            struct {
		Configuration struct {
			Duration githubv4.Int
			StartDay githubv4.Int
		}
	} `graphql:"... on ProjectV2IterationField"`
	SingleSelect struct {
		Options []ProjectSingleSelectFieldOption
	} `graphql:"... on ProjectV2SingleSelectField"`
}

ProjectField is a GitHub project field, see https://docs.github.com/en/graphql/reference/objects#projectv2field.

type ProjectItem

type ProjectItem struct {
	ID         githubv4.ID
	DatabaseID githubv4.Int
}

ProjectItem is a GitHub project item, see https://docs.github.com/en/graphql/reference/objects#projectv2item.

type ProjectSingleSelectFieldOption

type ProjectSingleSelectFieldOption struct {
	ID   githubv4.String
	Name githubv4.String
}

ProjectSingleSelectFieldOption is a GitHub field option, see https://docs.github.com/en/graphql/reference/objects#projectv2singleselectfieldoption.

type ProjectV2FieldCommon

type ProjectV2FieldCommon struct {
	ID       githubv4.ID
	DataType githubv4.ProjectV2FieldType
	Name     githubv4.String
}

ProjectV2FieldCommon is a GitHub project field common, see https://docs.github.com/en/graphql/reference/interfaces#projectv2fieldcommon.

type User

type User struct {
	ID githubv4.ID
}

User is a GitHub user, see https://docs.github.com/en/graphql/reference/objects#user.

Jump to

Keyboard shortcuts

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