{"modulePath":"github.com/docker/leeroy","version":"v0.0.0-20170315203315-e1d2556ecf85","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype GitHub struct {\n\tAuthToken string\n\tUser      string\n}\n```\nGitHub holds the client information for connecting to the GitHub API\n\n```go\nfunc (g GitHub) Client() *octokat.Client\n```\nClient initializes the authorization with the GitHub API\n\n```go\nfunc (g GitHub) DcoVerified(pr *PullRequest) (bool, error)\n```\nDcoVerified checks if the pull request has been properly signed\n\n```go\nfunc (g *GitHub) GetContent(repo octokat.Repo, id int, isPR bool) (*PullRequestContent, error)\n```\nGetContent returns the content of the issue/pull request number passed.\n\n```go\nfunc (g GitHub) IsMergeable(pr *PullRequest) (mergeable bool, err error)\n```\nIsMergeable makes sure the pull request can be merged\n\n```go\nfunc (g GitHub) IssueAddVersionLabel(issueHook *octokat.IssueHook) error\n```\nIssueAddVersionLabel adds a version label to an issue if it matches the regex\n\n```go\nfunc (g GitHub) LabelIssueComment(issueHook *octokat.IssueHook) error\n```\nLabelIssueComment checks if someone has claimed dibs on this issue\n\n```go\nfunc (g GitHub) LoadPullRequest(hook *octokat.PullRequestHook) (*PullRequest, error)\n```\nLoadPullRequest takes an incoming PullRequestHook and converts it to the PullRequest type\n\n```go\nfunc (g GitHub) MoveTriageForward(repo *octokat.Repository, number int, comment *octokat.Comment) error\n```\nMoveTriageForward adds labels pertaining to the status of the pull request\n\n```go\ntype PullRequest struct {\n\tHook    *octokat.PullRequestHook\n\tRepo    octokat.Repo\n\tContent *PullRequestContent\n\t*octokat.PullRequest\n}\n```\nPullRequest describes a github pull request\n\n```go\nfunc (pr *PullRequest) Execdriver() bool\n```\nExecdriver checks if the changes are to execdriver's directories.\n\n```go\nfunc (pr PullRequest) ReleaseBase() bool\n```\nReleaseBase checks if the pull request is being merged into the release branch\n\n```go\ntype PullRequestContent struct {\n\t// contains filtered or unexported fields\n}\n```\nPullRequestContent contains the files, commits, and comments for a given pull request\n\n```go\nfunc (p *PullRequestContent) AlreadyCommented(commentType, user string) bool\n```\nAlreadyCommented checks if the user has already commented.\n\n```go\nfunc (p *PullRequestContent) CommitsSigned() bool\n```\nCommitsSigned checks if the commits are signed.\n\n```go\nfunc (p *PullRequestContent) Distribution() bool\n```\nDistribution checks if the changes are to distribution's directories.\n\n```go\nfunc (p *PullRequestContent) FindComment(commentType, user string) *octokat.Comment\n```\nFindComment finds a specific comment.\n\n```go\nfunc (p *PullRequestContent) HasDocsChanges() bool\n```\nHasDocsChanges checks for docs changes.\n\n```go\nfunc (p *PullRequestContent) HasVendoringChanges() bool\n```\nHasVendoringChanges checks for vendoring changes.\n\n```go\nfunc (p *PullRequestContent) IsNonCodeOnly() bool\n```\nIsNonCodeOnly chacks if only non code files are modified.\n\n```go\nfunc (p *PullRequestContent) OnlyFreebsd() bool\n```\nOnlyFreebsd checks if changes are only to freebsd specific files.\n\n```go\nfunc (p *PullRequestContent) OnlyWindows() bool\n```\nOnlyWindows checks if changes are only to windows specific files.\n\n```go\nfunc (p *PullRequestContent) Protobuf() bool\n```\nProtobuf checks if there are changes to protocol buffers definitions or code generated from them.\n\n```go\ntype PullRequestReviewCommentHook struct {\n\tAction      string\n\tPullRequest *octokat.PullRequest\n\tComment     *octokat.Comment\n\tRepo        *octokat.Repository\n}\n```\nPullRequestReviewCommentHook describes the hook for a pull request comment\n\n```go\nfunc ParsePullRequestReviewCommentHook(body io.Reader) (PullRequestReviewCommentHook, error)\n```\nParsePullRequestReviewCommentHook parses the web hook recieved into a PullRequestReviewCommentHook\n\n```go\nfunc (pr PullRequestReviewCommentHook) IsOpen() bool\n```\nIsOpen returns if the pull request is open\n\n","path":"github.com/docker/leeroy/github","name":"github","synopsis":"","isRedistributable":true}
