monitor

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GithubAccessTokenEnvVar is the env var name to use
	GithubAccessTokenEnvVar = "GITHUB_ACCESS_TOKEN"

	// OkToTestLabel is the github label for ok-to-test
	OkToTestLabel = "ok-to-test"

	// GithubOwner is the owner of the github repository
	GithubOwner = "kubernetes"

	// GithubRepo is the name of the github repository
	GithubRepo = "minikube"

	// BotName is the name of the minikube Pull Request bot
	BotName = "minikube-pr-bot"
)

Variables

This section is empty.

Functions

func RunMkcmp

func RunMkcmp(ctx context.Context, pr int) (string, error)

RunMkcmp runs minikube built at the given pr against minikube at master

Types

type Client

type Client struct {
	*github.Client
	// contains filtered or unexported fields
}

Client provides the context and client with necessary auth for interacting with the GitHub API

func NewClient

func NewClient(ctx context.Context, owner, repo string) *Client

NewClient returns a github client with the necessary auth

func (*Client) CommentOnPR

func (g *Client) CommentOnPR(pr int, message string) error

CommentOnPR comments message on the PR

func (*Client) ListOpenPRsWithLabel

func (g *Client) ListOpenPRsWithLabel(label string) ([]int, error)

ListOpenPRsWithLabel returns all open PRs with the specified label

func (*Client) NewCommitsExist

func (g *Client) NewCommitsExist(pr int, login string) (bool, error)

NewCommitsExist checks if new commits exist since minikube-pr-bot commented on the PR. If so, return true.

Jump to

Keyboard shortcuts

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