Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field added in v0.5.0

type Field struct {
	ID       string
	DataType string
	Value    FieldValue
}

func NewField added in v0.5.1

func NewField(field ProjectField, value string) (*Field, error)

type FieldValue added in v0.7.0

type FieldValue struct {
	Date                 string  `json:"date,omitempty"`
	IterationID          string  `json:"iterationId,omitempty"`
	Number               float64 `json:"number,omitempty"`
	SingleSelectOptionID string  `json:"singleSelectOptionId,omitempty"`
	Text                 string  `json:"text,omitempty"`
}

type IssueOrPullRequest added in v0.3.0

type IssueOrPullRequest struct {
	ID string
}

type Project

type Project struct {
	ID          string
	Number      int
	Title       string
	Description string
	Body        string
	Creator     *actor
	CreatedAt   *time.Time
	Public      bool
	URL         string
	Items       *projectItemNode
}

type ProjectField added in v0.7.0

type ProjectField struct {
	ID            string
	Name          string
	DataType      string
	Configuration struct {
		Iterations []struct {
			ID   string
			Name string
		}
	}
	Options []struct {
		ID   string
		Name string
	}
}

type ProjectItem added in v0.4.0

type ProjectItem struct {
	ID      string
	Type    string
	Content projectItemContent
}

type ProjectNode added in v0.3.0

type ProjectNode struct {
	Type      string
	ProjectV2 *Project

	// A bit of a hack to get an owned repo in a single query with a project V2.
	// See queryRepositoryOwnerProjectV2ID
	Repository *repository
}

type ProjectsNode

type ProjectsNode struct {
	TotalCount int
	Nodes      []Project
	PageInfo   pageInfo
}

type RepositoryIssueOrPullRequest added in v0.3.0

type RepositoryIssueOrPullRequest struct {
	Repository issueOrPullRequestNode
}

type RepositoryProject

type RepositoryProject struct {
	Viewer struct {
		ID string
	}
	Repository ProjectNode
}

type RepositoryProjects

type RepositoryProjects struct {
	Repository projects
}

Jump to

Keyboard shortcuts

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