fakegithub

package
v0.0.0-...-5952ad4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 (f *FakeClient) GetIssueLabels(owner, repo string, number int) ([]github.Label, error)

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) GetRef

func (f *FakeClient) GetRef(owner, repo, ref string) (string, error)

func (*FakeClient) GetRepoLabels

func (f *FakeClient) GetRepoLabels(owner, repo string) ([]github.Label, error)

func (*FakeClient) IsMember

func (f *FakeClient) IsMember(org, user string) (bool, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL