github

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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