Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + const Bot + const TestRef + type FakeClient struct + AssigneesAdded []string + Collaborators []string + Column string + ColumnCardsMap map[int][]github.ProjectCard + ColumnIDMap map[string]map[int]string + CombinedStatuses map[string]*github.CombinedStatus + CommentReactionsAdded []string + CommitMap map[string][]github.RepositoryCommit + Commits map[string]github.RepositoryCommit + CreatedStatuses map[string][]github.Status + Error error + GetRepoError error + IssueCommentID int + IssueComments map[int][]github.IssueComment + IssueCommentsAdded []string + IssueCommentsDeleted []string + IssueCommentsEdited []string + IssueEvents map[int][]github.ListedIssueEvent + IssueID int + IssueLabelsAdded []string + IssueLabelsExisting []string + IssueLabelsRemoved []string + IssueReactionsAdded []string + Issues map[int]*github.Issue + ListIssueCommentsWithContextError error + Milestone int + MilestoneMap map[string]int + OrgHooks map[string][]github.Hook + OrgMembers map[string][]string + OrgProjects map[string][]github.Project + OrgRepoIssueLabels map[string][]github.Label + Project string + ProjectColumnsMap map[string][]github.ProjectColumn + PullRequestChanges map[int][]github.PullRequestChange + PullRequestComments map[int][]github.ReviewComment + PullRequestReviewCommentID int + PullRequestReviewComments map[int][]github.ReviewComment + PullRequestReviewCommentsAdded []string + PullRequests map[int]*github.PullRequest + RefsDeleted []struct{ ... } + RemoteDirectories map[string]map[string][]github.DirectoryContent + RemoteFiles map[string]map[string]string + RepoHooks map[string][]github.Hook + RepoLabelsExisting []string + RepoProjects map[string][]github.Project + ReviewID int + ReviewersRequested []string + Reviews map[int][]github.Review + Teams map[string]map[string]TeamWithMembers + UserOrgInvitations map[string]github.UserOrgInvitation + UserRepoInvitations map[int]github.UserRepoInvitation + WasLabelAddedByHumanVal bool + func NewFakeClient() *FakeClient + func (f *FakeClient) AcceptUserOrgInvitation(org string) error + func (f *FakeClient) AcceptUserRepoInvitation(invitationID int) error + func (f *FakeClient) AddLabel(owner, repo string, number int, label string) error + func (f *FakeClient) AddLabels(owner, repo string, number int, labels ...string) error + func (f *FakeClient) AddRepoLabel(org, repo, label, description, color string) error + func (f *FakeClient) AssignIssue(owner, repo string, number int, assignees []string) error + func (f *FakeClient) BotUser() (*github.UserData, error) + func (f *FakeClient) BotUserChecker() (func(candidate string) bool, error) + func (f *FakeClient) BotUserCheckerWithContext(_ context.Context) (func(candidate string) bool, error) + func (f *FakeClient) ClearMilestone(org, repo string, issueNum int) error + func (f *FakeClient) CloseIssue(org, repo string, number int) error + func (f *FakeClient) CloseIssueAsNotPlanned(org, repo string, number int) error + func (f *FakeClient) CreateComment(owner, repo string, number int, comment string) error + func (f *FakeClient) CreateCommentReaction(org, repo string, ID int, reaction string) error + func (f *FakeClient) CreateCommentWithContext(_ context.Context, owner, repo string, number int, comment string) error + func (f *FakeClient) CreateIssue(org, repo, title, body string, milestone int, labels, assignees []string) (int, error) + func (f *FakeClient) CreateIssueReaction(org, repo string, ID int, reaction string) error + func (f *FakeClient) CreateProjectCard(org string, columnID int, projectCard github.ProjectCard) (*github.ProjectCard, error) + func (f *FakeClient) CreatePullRequest(org, repo, title, body, head, base string, canModify bool) (int, error) + func (f *FakeClient) CreatePullRequestReviewComment(owner, repo string, number int, rc github.ReviewComment) error + func (f *FakeClient) CreateReview(org, repo string, number int, r github.DraftReview) error + func (f *FakeClient) CreateStatus(owner, repo, SHA string, s github.Status) error + func (f *FakeClient) CreateStatusWithContext(_ context.Context, owner, repo, SHA string, s github.Status) error + func (f *FakeClient) DeleteComment(owner, repo string, ID int) error + func (f *FakeClient) DeleteCommentWithContext(_ context.Context, owner, repo string, ID int) error + func (f *FakeClient) DeleteProjectCard(org string, projectCardID int) error + func (f *FakeClient) DeleteRef(owner, repo, ref string) error + func (f *FakeClient) DeleteStaleComments(org, repo string, number int, comments []github.IssueComment, ...) error + func (f *FakeClient) EditComment(org, repo string, ID int, comment string) error + func (f *FakeClient) EditCommentWithContext(_ context.Context, org, repo string, ID int, comment string) error + func (f *FakeClient) EditIssue(org, repo string, number int, issue *github.Issue) (*github.Issue, error) + func (f *FakeClient) EditPullRequest(org, repo string, number int, issue *github.PullRequest) (*github.PullRequest, error) + func (f *FakeClient) FindIssues(query, sort string, asc bool) ([]github.Issue, error) + func (f *FakeClient) FindIssuesWithOrg(org, query, sort string, asc bool) ([]github.Issue, error) + func (f *FakeClient) GetColumnProjectCard(org string, columnID int, contentURL string) (*github.ProjectCard, error) + func (f *FakeClient) GetColumnProjectCards(org string, columnID int) ([]github.ProjectCard, error) + func (f *FakeClient) GetCombinedStatus(owner, repo, ref string) (*github.CombinedStatus, error) + func (f *FakeClient) GetDirectory(org, repo, dir, commit string) ([]github.DirectoryContent, error) + func (f *FakeClient) GetFailedActionRunsByHeadBranch(org, repo, branchName, headSHA string) ([]github.WorkflowRun, error) + func (f *FakeClient) GetFile(org, repo, file, commit string) ([]byte, error) + func (f *FakeClient) GetIssue(owner, repo string, number int) (*github.Issue, error) + func (f *FakeClient) GetIssueLabels(owner, repo string, number int) ([]github.Label, error) + func (f *FakeClient) GetOrgProjects(org string) ([]github.Project, error) + func (f *FakeClient) GetProjectColumns(org string, projectID int) ([]github.ProjectColumn, error) + func (f *FakeClient) GetPullRequest(owner, repo string, number int) (*github.PullRequest, error) + func (f *FakeClient) GetPullRequestChanges(org, repo string, number int) ([]github.PullRequestChange, error) + func (f *FakeClient) GetRef(owner, repo, ref string) (string, error) + func (f *FakeClient) GetRepo(owner, name string) (github.FullRepo, error) + func (f *FakeClient) GetRepoLabels(owner, repo string) ([]github.Label, error) + func (f *FakeClient) GetRepoProjects(owner, repo string) ([]github.Project, error) + func (f *FakeClient) GetRepos(org string, isUser bool) ([]github.Repo, error) + func (f *FakeClient) GetSingleCommit(org, repo, SHA string) (github.RepositoryCommit, error) + func (f *FakeClient) GetTeamBySlug(slug string, org string) (*github.Team, error) + func (f *FakeClient) IsCollaborator(org, repo, login string) (bool, error) + func (f *FakeClient) IsMember(org, user string) (bool, error) + func (f *FakeClient) ListCollaborators(org, repo string) ([]github.User, error) + func (f *FakeClient) ListCurrentUserOrgInvitations() ([]github.UserOrgInvitation, error) + func (f *FakeClient) ListCurrentUserRepoInvitations() ([]github.UserRepoInvitation, error) + func (f *FakeClient) ListIssueComments(owner, repo string, number int) ([]github.IssueComment, error) + func (f *FakeClient) ListIssueCommentsWithContext(ctx context.Context, owner, repo string, number int) ([]github.IssueComment, error) + func (f *FakeClient) ListIssueEvents(owner, repo string, number int) ([]github.ListedIssueEvent, error) + func (f *FakeClient) ListMilestones(org, repo string) ([]github.Milestone, error) + func (f *FakeClient) ListOpenIssues(org, repo string) ([]github.Issue, error) + func (f *FakeClient) ListPRCommits(org, repo string, prNumber int) ([]github.RepositoryCommit, error) + func (f *FakeClient) ListPullRequestComments(owner, repo string, number int) ([]github.ReviewComment, error) + func (f *FakeClient) ListReviews(owner, repo string, number int) ([]github.Review, error) + func (f *FakeClient) ListStatuses(org, repo, ref string) ([]github.Status, error) + func (f *FakeClient) ListTeamMembers(org string, teamID int, role string) ([]github.TeamMember, error) + func (f *FakeClient) ListTeamMembersBySlug(org, teamSlug, role string) ([]github.TeamMember, error) + func (f *FakeClient) ListTeams(org string) ([]github.Team, error) + func (f *FakeClient) MoveProjectCard(org string, projectCardID int, newColumnID int) error + func (f *FakeClient) MutateWithGitHubAppsSupport(ctx context.Context, m interface{}, input githubql.Input, ...) error + func (f *FakeClient) Query(ctx context.Context, q interface{}, vars map[string]interface{}) error + func (f *FakeClient) RemoveLabel(owner, repo string, number int, label string) error + func (f *FakeClient) RequestReview(org, repo string, number int, logins []string) error + func (f *FakeClient) SetMilestone(org, repo string, issueNum, milestoneNum int) error + func (f *FakeClient) TeamBySlugHasMember(org string, teamSlug string, memberLogin string) (bool, error) + func (f *FakeClient) TeamHasMember(org string, teamID int, memberLogin string) (bool, error) + func (f *FakeClient) TriggerGitHubWorkflow(org, repo string, id int) error + func (f *FakeClient) UpdatePullRequest(org, repo string, number int, title, body *string, open *bool, branch *string, ...) error + func (f *FakeClient) WasLabelAddedByHuman(_, _ string, _ int, _ string) (bool, error) + type TeamWithMembers struct + Members sets.String + Team github.Team