github

package
v0.0.0-...-d74b6c8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 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

func CheckAndComment

func CheckAndComment(ctx context.Context, client *github.Client, owner, repo string, prNumber int) error

CheckAndComment checks for the specific comment from a specific account and posts a comment if it doesn't exist.

func FindAllPRs

func FindAllPRs(cfg *config.Config, teamMembers map[string]bool, githubClient *github.Client, owner string, repo string, minimumNumber int) ([]*github.PullRequest, error)

FindAllPRs obtains all PRs for the repository

func FindCommunityPRs

func FindCommunityPRs(cfg *config.Config, teamMembers map[string]bool, githubClient *github.Client, owner string, repo string, minimumNumber int) ([]*github.PullRequest, error)

FindCommunityPRs obtains PRs based on provided filters for community members

func GetTeamMemberList

func GetTeamMemberList(githubClient *github.Client, internalTeam string, internalTeamIgnoredMembers []string) (map[string]bool, error)

GetTeamMemberList obtains a list of teammembers

Types

type PendingPR

type PendingPR struct {
	Repo     string
	PRNumber int
	URL      string
}

PendingPR holds information about pending PRs

func CheckForPendingCI

func CheckForPendingCI(ctx context.Context, githubClient *github.Client, cfg *config.Config) ([]PendingPR, error)

CheckForPendingCI returns a list of PR URLs that are ready for CI to run but haven't started yet.

type StalePR

type StalePR struct {
	Repo     string
	PRNumber int
	URL      string
}

StalePR holds information about pending PRs

func CheckStalePRs

func CheckStalePRs(ctx context.Context, githubClient *github.Client, cfg *config.Config) ([]StalePR, error)

CheckStalePRs will return a list of PR URLs that have not been updated in the last 7 days by internal team members.

type UnsignedPRs

type UnsignedPRs struct {
	Owner    string
	Repo     string
	PRNumber int
	URL      string
}

UnsignedPRs holds information about pending PRs

func CheckUnsignedCommits

func CheckUnsignedCommits(ctx context.Context, githubClient *github.Client, cfg *config.Config) ([]UnsignedPRs, error)

CheckUnsignedCommits will return a list of PR URLs that have not been updated in the last 7 days by internal team members.

Jump to

Keyboard shortcuts

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