github

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPullRequestApprovers

func GetPullRequestApprovers(ghToken, ghOwner, repository string, number int) ([]string, error)

GetPullRequestApprovers returns a list of approvers for a given pull request

func NewGithubClientFromToken

func NewGithubClientFromToken(ctx context.Context, ghToken string) *gh.Client

NewGithubClientFromToken returns Github client with a token and context

func PullRequestsForCommit

func PullRequestsForCommit(ghToken, ghOwner, repository, commit string) ([]*gh.PullRequest, error)

PullRequestsForCommit returns a list of pull requests for a specific commit

Types

This section is empty.

Jump to

Keyboard shortcuts

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