github

package
v0.0.0-...-13e0b7f Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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