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
- 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, ref string, s github.Status) error
- func (f *FakeClient) DeleteComment(owner, repo string, ID int) error
- func (f *FakeClient) FindIssues(query string) ([]github.Issue, error)
- func (f *FakeClient) GetCombinedStatus(owner, repo, ref string) (*github.CombinedStatus, 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(pr github.PullRequest) ([]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) ListIssueComments(owner, repo string, number int) ([]github.IssueComment, error)
- func (f *FakeClient) RemoveLabel(owner, repo string, number int, label string) 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 []string IssueComments map[int][]github.IssueComment IssueCommentID int PullRequests map[int]*github.PullRequest PullRequestChanges map[int][]github.PullRequestChange CombinedStatuses map[string]*github.CombinedStatus //All Labels That Exist In The Repo ExistingLabels []string // org/repo#number:label LabelsAdded []string LabelsRemoved []string // org/repo#issuecommentid:reaction IssueReactionsAdded []string CommentReactionsAdded []string // org/repo#number:assignee AssigneesAdded []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
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, ref string, s github.Status) error
func (*FakeClient) DeleteComment ¶
func (f *FakeClient) DeleteComment(owner, repo string, ID int) error
func (*FakeClient) FindIssues ¶
func (f *FakeClient) FindIssues(query string) ([]github.Issue, error)
func (*FakeClient) GetCombinedStatus ¶
func (f *FakeClient) GetCombinedStatus(owner, repo, ref string) (*github.CombinedStatus, 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(pr github.PullRequest) ([]github.PullRequestChange, error)
func (*FakeClient) GetRepoLabels ¶
func (f *FakeClient) GetRepoLabels(owner, repo string) ([]github.Label, error)
func (*FakeClient) ListIssueComments ¶
func (f *FakeClient) ListIssueComments(owner, repo string, number int) ([]github.IssueComment, error)
func (*FakeClient) RemoveLabel ¶
func (f *FakeClient) RemoveLabel(owner, repo string, number int, label string) error
Click to show internal directories.
Click to hide internal directories.