Documentation
¶
Index ¶
- func ClearIterationField(projectID string, fieldID string, itemID string) (string, error)
- func FetchIterationFields(projectID string) (*[]ProjectV2IterationFieldWithoutConfiguration, error)
- func FetchProjectFields(projectID string) (*[]ProjectV2FieldConfiguration, error)
- func FetchProjectItems(projectID string) (*[]ProjectItem, error)
- func UpdateIterationField(projectID string, fieldID string, itemID string, iterationID string) (string, error)
- type DraftIssue
- type FieldValue
- type Issue
- type Organization
- type Owner
- type OwnerType
- type Project
- type ProjectItem
- type ProjectItemContent
- type ProjectV2FieldConfiguration
- type ProjectV2IterationField
- type ProjectV2IterationFieldIteration
- type ProjectV2IterationFieldWithoutConfiguration
- type PullRequest
- type Repository
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearIterationField ¶
https://docs.github.com/ja/graphql/reference/mutations#clearprojectv2itemfieldvalue
func FetchIterationFields ¶
func FetchIterationFields(projectID string) (*[]ProjectV2IterationFieldWithoutConfiguration, error)
func FetchProjectFields ¶
func FetchProjectFields(projectID string) (*[]ProjectV2FieldConfiguration, error)
func FetchProjectItems ¶
func FetchProjectItems(projectID string) (*[]ProjectItem, error)
Types ¶
type FieldValue ¶
type FieldValue struct {
ProjectV2ItemFieldValueCommon struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldValueCommon"`
ProjectV2ItemFieldDateValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldDateValue"`
ProjectV2ItemFieldIterationValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
IterationID string `json:"iterationId"`
StartDate string `json:"startDate"`
Duration graphql.Int `json:"duration"`
Title string `json:"title"`
TitleHTML string `graphql:"titleHTML" json:"titleHtml"`
} `graphql:"... on ProjectV2ItemFieldIterationValue"`
ProjectV2ItemFieldLabelValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldLabelValue"`
ProjectV2ItemFieldMilestoneValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldMilestoneValue"`
ProjectV2ItemFieldNumberValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
Number graphql.Float `json:"number"`
} `graphql:"... on ProjectV2ItemFieldNumberValue"`
ProjectV2ItemFieldPullRequestValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldPullRequestValue"`
ProjectV2ItemFieldRepositoryValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldRepositoryValue"`
ProjectV2ItemFieldReviewerValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldReviewerValue"`
ProjectV2ItemFieldSingleSelectValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
Name string `json:"name"`
OptionID string `json:"optionId"`
} `graphql:"... on ProjectV2ItemFieldSingleSelectValue"`
ProjectV2ItemFieldTextValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldTextValue"`
ProjectV2ItemFieldUserValue struct {
Field ProjectV2FieldConfiguration `json:"field"`
} `graphql:"... on ProjectV2ItemFieldUserValue"`
}
type Issue ¶
type Organization ¶
type Organization struct {
ID string `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
}
Organization https://docs.github.com/ja/graphql/reference/objects#organization
func FetchOrganizationByLogin ¶
func FetchOrganizationByLogin(login string) (*Organization, error)
type Owner ¶
type Owner struct {
ID string `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
Type OwnerType `json:"type"`
}
func FetchOwnerByLogin ¶
type Project ¶
type Project struct {
ID string `json:"id"`
Number int `json:"number"`
Title string `json:"title"`
}
Project https://docs.github.com/en/graphql/reference/objects#projectv2
func FetchProjectByID ¶
type ProjectItem ¶
type ProjectItem struct {
Content ProjectItemContent `json:"content"`
ID string `json:"id"`
FieldValues struct {
Nodes []FieldValue `json:"nodes"`
} `json:"fieldValues" graphql:"fieldValues(first: 100)"`
IsArchived bool `json:"isArchived"`
Type string `json:"type"` // DRAFT_ISSUE, ISSUE, PULL_REQUEST, REDACTED
Project Project `json:"project"`
}
ProjectV2Item https://docs.github.com/ja/graphql/reference/objects#projectv2item
func FetchProjectItem ¶
func FetchProjectItem(itemID string) (*ProjectItem, error)
type ProjectItemContent ¶
type ProjectItemContent struct {
DraftIssue DraftIssue `graphql:"...on DraftIssue" json:"draftIssue"`
Issue Issue `graphql:"...on Issue" json:"issue"`
PullRequest PullRequest `graphql:"...on PullRequest" json:"pullRequest"`
}
https://docs.github.com/ja/graphql/reference/unions#projectv2itemcontent
type ProjectV2IterationField ¶
type ProjectV2IterationField struct {
ID string `json:"id"`
Name string `json:"name"`
Configuration struct {
CompletedIterations []ProjectV2IterationFieldIteration `json:"completedIterations"`
Iterations []ProjectV2IterationFieldIteration `json:"iterations"`
} `json:"configuration"`
}
ProjectV2IterationField https://docs.github.com/en/graphql/reference/objects#projectv2iterationfield
func FetchIterationFieldByID ¶
func FetchIterationFieldByID(fieldID string) (*ProjectV2IterationField, error)
func FetchIterationFieldByName ¶
func FetchIterationFieldByName(projectID string, fieldName string) (*ProjectV2IterationField, error)
type ProjectV2IterationFieldIteration ¶
type ProjectV2IterationFieldIteration struct {
Duration int `json:"duration"`
ID string `json:"id"`
StartDate string `json:"startDate"`
Title string `json:"title"`
}
ProjectV2IterationFieldIteration https://docs.github.com/en/graphql/reference/objects#projectv2iterationfielditeration
type PullRequest ¶
type PullRequest struct {
ID string `json:"id"`
Number int `json:"number"`
Title string `json:"title"`
Closed bool `json:"closed"`
IsDraft bool `json:"isDraft"`
Merged bool `json:"merged"`
Repository Repository `json:"repository"`
State string `json:"state"` // CLOSED, MERGED, OPEN
}
https://docs.github.com/ja/graphql/reference/objects#pullrequest
type User ¶
User https://docs.github.com/ja/graphql/reference/objects#user