github

package
v0.0.0-...-f560814 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIssueComment

func AddIssueComment(input githubv4.AddCommentInput) error

func CloseIssue

func CloseIssue(id string) error

func CreateIssue

func CreateIssue(input githubv4.CreateIssueInput) error

func DeleteIssueComment

func DeleteIssueComment(id string) error

func NewClient

func NewClient(token string)

func ReopenIssue

func ReopenIssue(id string) error

func UpdateIssue

func UpdateIssue(input githubv4.UpdateIssueInput) error

func UpdateIssueComment

func UpdateIssueComment(input githubv4.UpdateIssueCommentInput) error

Types

type AssignableUser

type AssignableUser struct {
	Login githubv4.String
}

func (*AssignableUser) ToDomain

func (a *AssignableUser) ToDomain() *domain.AssignableUser

type AssignableUsers

type AssignableUsers struct {
	Nodes []struct {
		ID    githubv4.ID
		Login githubv4.String
	}
	PageInfo PageInfo
}

func GetRepoAssignableUsers

func GetRepoAssignableUsers(variables map[string]interface{}) (*AssignableUsers, error)

type Comment

type Comment struct {
	ID     githubv4.String
	Author struct {
		Login githubv4.String
	}
	UpdatedAt githubv4.DateTime
	Body      githubv4.String
	URL       githubv4.URI
}

func (*Comment) ToDomain

func (c *Comment) ToDomain() *domain.Comment

type Issue

type Issue struct {
	ID         githubv4.String
	Repository struct {
		ID    githubv4.String
		Owner struct {
			Login githubv4.String
		}
		Name githubv4.String
	}
	Number githubv4.Int
	Body   githubv4.String
	State  githubv4.String
	Author struct {
		Login githubv4.String
	}
	Title     githubv4.String
	URL       githubv4.URI
	Labels    Labels `graphql:"labels(first: 10)"`
	Assignees struct {
		Nodes []AssignableUser
	} `graphql:"assignees(first: 10)"`
	ProjectCards struct {
		Nodes []struct {
			Project Project
		}
	} `graphql:"projectCards(first: 10)"`
	Milestone Milestone
	Comments  struct {
		Nodes []Comment
	} `graphql:"comments(first: 100)"`
}

func GetIssue

func GetIssue(variables map[string]interface{}) (*Issue, error)

func (*Issue) ToDomain

func (i *Issue) ToDomain() *domain.Issue

type IssueTemplate

type IssueTemplate struct {
	About githubv4.String
	Body  githubv4.String
	Name  githubv4.String
	Title githubv4.String
}

func GetIssueTemplates

func GetIssueTemplates(variables map[string]interface{}) ([]IssueTemplate, error)

type Issues

type Issues struct {
	Nodes []struct {
		Issue Issue `graphql:"... on Issue"`
	}
	PageInfo PageInfo
}

func GetIssues

func GetIssues(variables map[string]interface{}) (*Issues, error)

type Label

type Label struct {
	ID          githubv4.ID
	Name        githubv4.String
	Description githubv4.String
	Color       githubv4.String
}

func (*Label) ToDomain

func (l *Label) ToDomain() *domain.Label

type Labels

type Labels struct {
	Nodes    []Label
	PageInfo PageInfo
}

func GetRepoLabels

func GetRepoLabels(variables map[string]interface{}) (*Labels, error)

type Milestone

type Milestone struct {
	ID          githubv4.ID
	Title       githubv4.String
	State       githubv4.String
	Description githubv4.String
	URL         githubv4.URI
}

func (*Milestone) ToDomain

func (m *Milestone) ToDomain() *domain.Milestone

type Milestones

type Milestones struct {
	Nodes    []Milestone
	PageInfo PageInfo
}

func GetRepoMillestones

func GetRepoMillestones(variables map[string]interface{}) (*Milestones, error)

type MutateAddIssueComment

type MutateAddIssueComment struct {
	AddIssueComment struct {
		ClientMutationID githubv4.String
	} `graphql:"addComment(input: $input)"`
}

type MutateCoseIssue

type MutateCoseIssue struct {
	CloseIssue struct {
		Issue struct {
			ID githubv4.String
		}
	} `graphql:"closeIssue(input: $input)"`
}

type MutateCreateIssue

type MutateCreateIssue struct {
	CreateIssue struct {
		Issue struct {
			ID githubv4.String
		}
	} `graphql:"createIssue(input: $input)"`
}

type MutateDeleteComment

type MutateDeleteComment struct {
	DeleteIssueComment struct {
		ClientMutationId githubv4.String
	} `graphql:"deleteIssueComment(input: $input)"`
}

type MutateOpenIsseue

type MutateOpenIsseue struct {
	ReopenIssue struct {
		Issue struct {
			ID githubv4.String
		}
	} `graphql:"reopenIssue(input: $input)"`
}

type MutateUpdateIssue

type MutateUpdateIssue struct {
	UpdateIssue struct {
		Issue struct {
			ID githubv4.ID
		}
	} `graphql:"updateIssue(input: $input)"`
}

type MutateUpdateIssueComment

type MutateUpdateIssueComment struct {
	UpdateIssueComment struct {
		ClientMutationId githubv4.String
	} `graphql:"updateIssueComment(input: $input)"`
}

type PageInfo

type PageInfo struct {
	EndCursor   githubv4.String
	HasNextPage githubv4.Boolean
}

type Project

type Project struct {
	ID   githubv4.ID
	Name githubv4.String
	URL  githubv4.URI
}

func (*Project) ToDomain

func (p *Project) ToDomain() *domain.Project

type Projects

type Projects struct {
	Nodes    []Project
	PageInfo PageInfo
}

func GetRepoProjects

func GetRepoProjects(variables map[string]interface{}) (*Projects, error)

type Repositories

type Repositories struct {
	Nodes    []Repository
	PageInfo PageInfo
}

func GetRepos

func GetRepos(variables map[string]interface{}) (*Repositories, error)

type Repository

type Repository struct {
	ID               githubv4.ID
	Name             githubv4.String
	NameWithOwner    githubv4.String
	CreatedAt        githubv4.DateTime
	DefaultBranchRef struct {
		Name githubv4.String
	}
	Description githubv4.String
	LicenseInfo struct {
		Name githubv4.String
	}
	StargazerCount githubv4.Int
	URL            githubv4.URI
	SSHURL         githubv4.String
}

func GetRepo

func GetRepo(variables map[string]interface{}) (*Repository, error)

Jump to

Keyboard shortcuts

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