gh

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Approved         = "APPROVED"
	ChangesRequested = "CHANGES_REQUESTED"
	Commented        = "COMMENTED"
)

Review status.

Variables

This section is empty.

Functions

func GetReviewStatus

func GetReviewStatus(ctx context.Context, client *github.Client, owner, repositoryName string, members []*github.User, prNumber int) (map[string]string, map[string]string, error)

GetReviewStatus get reviews status of a Pull Request.

func GetTeamMembers

func GetTeamMembers(ctx context.Context, client *github.Client, owner, teamName string) ([]*github.User, error)

GetTeamMembers get members of a team.

func NewGitHubClient

func NewGitHubClient(ctx context.Context, token string) *github.Client

NewGitHubClient create a new GitHub client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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