github

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddToProjectMutation

type AddToProjectMutation struct {
	AddProjectV2ItemById struct {
		Item struct {
			Id githubv4.String
		}
	} `graphql:"addProjectV2ItemById(input: $input)"`
}

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 (g *GithubClient) AddItemToProjects(ctx context.Context, projectIds []string, itemNodeID string) error

func (*GithubClient) AddLabelToItem

func (g *GithubClient) AddLabelToItem(ctx context.Context, organization, repository string, itemnumber int, label ...string) error

func (*GithubClient) GetMembersOfTeam

func (g *GithubClient) GetMembersOfTeam(ctx context.Context, organization, teamslug string) ([]string, error)

func (*GithubClient) GetMembersOfTeams

func (g *GithubClient) GetMembersOfTeams(ctx context.Context, organization string, teams []string) ([]string, error)

func (*GithubClient) GetProjectID

func (g *GithubClient) GetProjectID(ctx context.Context, organization string, projectNumber int) (string, error)

func (*GithubClient) GetProjectIDs

func (g *GithubClient) GetProjectIDs(ctx context.Context, organization string, projectNumbers []int) (projectIDs []string, err error)

func (*GithubClient) ReadConfigFromRepo

func (g *GithubClient) ReadConfigFromRepo(ctx context.Context, owner, name, branch string) (*structs.Config, error)

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)"`
}

Jump to

Keyboard shortcuts

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