Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("resource not found")
ErrNotFound is returned when a resource is not found.
Functions ¶
func NewCreateProjectIssueCmd ¶
NewCreateProjectIssueCmd creates a new command for creating a project issue.
func NewDeleteAllRunsCmd ¶
NewDeleteAllRunsCmd creates a new command for deleting workflow runs.
func NewSetAuthCmd ¶
NewSetAuthCmd creates a new command for setting the GitHub personal access token.
func NewSyncForksCmd ¶ added in v0.3.0
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 ¶
ProjectItem is a GitHub project item, see https://docs.github.com/en/graphql/reference/objects#projectv2item.
type ProjectSingleSelectFieldOption ¶
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 ¶
User is a GitHub user, see https://docs.github.com/en/graphql/reference/objects#user.