Documentation
¶
Index ¶
- type FakeClient
- func (f *FakeClient) AddLabel(owner, repo string, number int, label string) error
- func (f *FakeClient) AssignIssue(owner, repo string, number int, assignees []string) error
- func (f *FakeClient) BotName() (string, error)
- func (f *FakeClient) ClearMilestone(org, repo string, issueNum 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) CreateIssueReaction(org, repo string, ID int, reaction string) error
- func (f *FakeClient) CreateStatus(owner, repo, sha string, s github.Status) error
- func (f *FakeClient) DeleteComment(owner, repo string, ID int) error
- func (f *FakeClient) DeleteStaleComments(org, repo string, number int, comments []github.IssueComment, ...) error
- func (f *FakeClient) FindIssues(query, sort string, asc bool) ([]github.Issue, error)
- func (f *FakeClient) GetCombinedStatus(owner, repo, ref string) (*github.CombinedStatus, error)
- func (f *FakeClient) GetFile(org, repo, file, commit string) ([]byte, error)
- func (f *FakeClient) GetIssueLabels(owner, repo string, number int) ([]github.Label, 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) GetRepoLabels(owner, repo string) ([]github.Label, error)
- func (f *FakeClient) IsMember(org, user string) (bool, error)
- func (f *FakeClient) ListCollaborators(org, repo string) ([]github.User, error)
- func (f *FakeClient) ListIssueComments(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) 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(teamID int) ([]github.TeamMember, error)
- func (f *FakeClient) RemoveLabel(owner, repo string, number int, label string) error
- func (f *FakeClient) SetMilestone(org, repo string, issueNum, milestoneNum int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { Issues []github.Issue OrgMembers map[string][]string Collaborators []string IssueComments map[int][]github.IssueComment IssueCommentID int PullRequests map[int]*github.PullRequest PullRequestChanges map[int][]github.PullRequestChange PullRequestComments map[int][]github.ReviewComment Reviews map[int][]github.Review CombinedStatuses map[string]*github.CombinedStatus CreatedStatuses map[string][]github.Status IssueEvents map[int][]github.ListedIssueEvent //All Labels That Exist In The Repo ExistingLabels []string // org/repo#number:label LabelsAdded []string LabelsRemoved []string // org/repo#number:body IssueCommentsAdded []string // org/repo#issuecommentid IssueCommentsDeleted []string // org/repo#issuecommentid:reaction IssueReactionsAdded []string CommentReactionsAdded []string // org/repo#number:assignee AssigneesAdded []string // org/repo#number:milestone (represents the milestone for a specific issue) Milestone int MilestoneMap map[string]int // Fake remote git storage. File name are keys // and values map SHA to content RemoteFiles map[string]map[string]string }
func (*FakeClient) AddLabel ¶
func (f *FakeClient) AddLabel(owner, repo string, number int, label string) error
func (*FakeClient) AssignIssue ¶
func (f *FakeClient) AssignIssue(owner, repo string, number int, assignees []string) error
func (*FakeClient) BotName ¶
func (f *FakeClient) BotName() (string, error)
func (*FakeClient) ClearMilestone ¶
func (f *FakeClient) ClearMilestone(org, repo string, issueNum int) error
func (*FakeClient) CreateComment ¶
func (f *FakeClient) CreateComment(owner, repo string, number int, comment string) error
func (*FakeClient) CreateCommentReaction ¶
func (f *FakeClient) CreateCommentReaction(org, repo string, ID int, reaction string) error
func (*FakeClient) CreateIssueReaction ¶
func (f *FakeClient) CreateIssueReaction(org, repo string, ID int, reaction string) error
func (*FakeClient) CreateStatus ¶
func (f *FakeClient) CreateStatus(owner, repo, sha string, s github.Status) error
func (*FakeClient) DeleteComment ¶
func (f *FakeClient) DeleteComment(owner, repo string, ID int) error
func (*FakeClient) DeleteStaleComments ¶
func (f *FakeClient) DeleteStaleComments(org, repo string, number int, comments []github.IssueComment, isStale func(github.IssueComment) bool) error
func (*FakeClient) FindIssues ¶
FindIssues returns f.Issues
func (*FakeClient) GetCombinedStatus ¶
func (f *FakeClient) GetCombinedStatus(owner, repo, ref string) (*github.CombinedStatus, error)
func (*FakeClient) GetFile ¶
func (f *FakeClient) GetFile(org, repo, file, commit string) ([]byte, error)
func (*FakeClient) GetIssueLabels ¶
func (*FakeClient) GetPullRequest ¶
func (f *FakeClient) GetPullRequest(owner, repo string, number int) (*github.PullRequest, error)
func (*FakeClient) GetPullRequestChanges ¶
func (f *FakeClient) GetPullRequestChanges(org, repo string, number int) ([]github.PullRequestChange, error)
func (*FakeClient) GetRepoLabels ¶
func (f *FakeClient) GetRepoLabels(owner, repo string) ([]github.Label, error)
func (*FakeClient) ListCollaborators ¶
func (f *FakeClient) ListCollaborators(org, repo string) ([]github.User, error)
func (*FakeClient) ListIssueComments ¶
func (f *FakeClient) ListIssueComments(owner, repo string, number int) ([]github.IssueComment, error)
func (*FakeClient) ListIssueEvents ¶
func (f *FakeClient) ListIssueEvents(owner, repo string, number int) ([]github.ListedIssueEvent, error)
func (*FakeClient) ListMilestones ¶
func (f *FakeClient) ListMilestones(org, repo string) ([]github.Milestone, error)
func (*FakeClient) ListPullRequestComments ¶
func (f *FakeClient) ListPullRequestComments(owner, repo string, number int) ([]github.ReviewComment, error)
func (*FakeClient) ListReviews ¶
func (*FakeClient) ListStatuses ¶
func (f *FakeClient) ListStatuses(org, repo, ref string) ([]github.Status, error)
func (*FakeClient) ListTeamMembers ¶
func (f *FakeClient) ListTeamMembers(teamID int) ([]github.TeamMember, error)
ListTeamMembers return a fake team with a single "sig-lead" Github teammember
func (*FakeClient) RemoveLabel ¶
func (f *FakeClient) RemoveLabel(owner, repo string, number int, label string) error
func (*FakeClient) SetMilestone ¶
func (f *FakeClient) SetMilestone(org, repo string, issueNum, milestoneNum int) error
Click to show internal directories.
Click to hide internal directories.