Documentation ¶
Index ¶
- Variables
- func CloseMilestone(ctx context.Context, opts CloseMilestoneOptions) (*github.Milestone, error)
- func ConvertMilestoneToMap(milestone *github.Milestone, fields []string) map[string]any
- func CreateMilestone(ctx context.Context, opts CreateMilestoneOptions) (*github.Milestone, error)
- func FetchOwnerAndRepoFromURL(url *url.URL) (*string, *string, error)
- func GetMilestone(ctx context.Context, repo ghrepo.Interface, number int) (*github.Milestone, error)
- func GetMilestoneByURL(ctx context.Context, url *url.URL) (*github.Milestone, error)
- func Milestones(ctx context.Context, repo ghrepo.Interface, filterOpts FilterOptions) ([]*github.Milestone, error)
- func ReopenMilestone(ctx context.Context, opts ReopenMilestoneOptions) (*github.Milestone, error)
- func WithBaseURL(baseURL string) clientOption
- func WithToken(token string) clientOption
- type CloseMilestoneOptions
- type CreateMilestoneOptions
- type FilterOptions
- type ReopenMilestoneOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var MilestoneFields = []string{
"url",
"id",
"number",
"state",
"title",
"description",
"creator",
"openIssues",
"closedIssues",
"createdAt",
"updatedAt",
"closedAt",
"dueOn",
}
Functions ¶
func CloseMilestone ¶
func ConvertMilestoneToMap ¶
func CreateMilestone ¶ added in v0.1.0
func FetchOwnerAndRepoFromURL ¶ added in v0.0.5
func GetMilestone ¶
func GetMilestoneByURL ¶
func Milestones ¶
func ReopenMilestone ¶ added in v0.0.5
func WithBaseURL ¶
func WithBaseURL(baseURL string) clientOption
Types ¶
type CloseMilestoneOptions ¶
type CreateMilestoneOptions ¶ added in v0.1.0
type CreateMilestoneOptions struct { IO *iostreams.IOStreams Repo ghrepo.Interface State *iMilestone.MilestoneMetadataState }
type FilterOptions ¶
Click to show internal directories.
Click to hide internal directories.