Documentation
¶
Index ¶
- func CheckAndComment(ctx context.Context, client *github.Client, owner, repo string, prNumber int) error
- func FindAllPRs(cfg *config.Config, teamMembers map[string]bool, githubClient *github.Client, ...) ([]*github.PullRequest, error)
- func FindCommunityPRs(cfg *config.Config, teamMembers map[string]bool, githubClient *github.Client, ...) ([]*github.PullRequest, error)
- func GetTeamMemberList(githubClient *github.Client, internalTeam string, ...) (map[string]bool, error)
- type PendingPR
- type StalePR
- type UnsignedPRs
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
Types ¶
type UnsignedPRs ¶
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.
Click to show internal directories.
Click to hide internal directories.