Documentation
¶
Index ¶
- type AddToProjectMutation
- type GithubClient
- func (g *GithubClient) AddItemToProject(ctx context.Context, projectId, itemNodeID string) error
- func (g *GithubClient) AddItemToProjects(ctx context.Context, projectIds []string, itemNodeID string) error
- func (g *GithubClient) AddLabelToItem(ctx context.Context, organization, repository string, itemnumber int, ...) error
- func (g *GithubClient) GetMembersOfTeam(ctx context.Context, organization, teamslug string) ([]string, error)
- func (g *GithubClient) GetMembersOfTeams(ctx context.Context, organization string, teams []string) ([]string, error)
- func (g *GithubClient) GetProjectID(ctx context.Context, organization string, projectNumber int) (string, error)
- func (g *GithubClient) GetProjectIDs(ctx context.Context, organization string, projectNumbers []int) (projectIDs []string, err error)
- func (g *GithubClient) ReadConfigFromRepo(ctx context.Context, owner, name, branch string) (*structs.Config, error)
- type ProjectQuery
- type TeamMembersQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToProjectMutation ¶
type GithubClient ¶
type GithubClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(installationId int64) (*GithubClient, error)
func (*GithubClient) AddItemToProject ¶
func (g *GithubClient) AddItemToProject(ctx context.Context, projectId, itemNodeID string) error
func (*GithubClient) AddItemToProjects ¶
func (*GithubClient) AddLabelToItem ¶
func (*GithubClient) GetMembersOfTeam ¶
func (*GithubClient) GetMembersOfTeams ¶
func (*GithubClient) GetProjectID ¶
func (*GithubClient) GetProjectIDs ¶
func (*GithubClient) ReadConfigFromRepo ¶
type ProjectQuery ¶
type ProjectQuery struct { Organization struct { ProjectV2 struct { Id string } `graphql:"projectV2(number: $projectID)"` } `graphql:"organization(login:$login)"` }
type TeamMembersQuery ¶
type TeamMembersQuery struct { Organization struct { Team struct { Name string Members struct { Nodes []member } `graphql:"members(membership:ALL)"` } `graphql:"team(slug:$slug)"` } `graphql:"organization(login:$login)"` }
Click to show internal directories.
Click to hide internal directories.