{"modulePath":"github.com/jackstockley89/github-actions/lib","version":"v0.0.0-20230316192857-5b4a0beed44e","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package lib\n\n## Functions\n\n```go\nfunc ClientConnect(token string) *github.Client\n```\nclientConnect Takens a token and uses this to establish a connection to github\n\n```go\nfunc CreateComment(token, owner, repository, body string, bid int)\n```\nCreateComment will create a comment on the pull request\n\n```go\nfunc CreateIssue(owner, repository, title, body string)\n```\nCreateIssue will create an issue in a repository\n\n```go\nfunc CreatePullRequest(owner, repository, title, body, head, base string)\n```\nCreatePullRequest will create a pull request in a repository\n\n```go\nfunc CreateReview(token, owner, repository, body string, bid int) (bool, error)\n```\nCreateReview will create a review on the pull request\n\n## Types\n\n```go\ntype Collaborators struct {\n\tCollaborators []string\n}\n```\nCollaborators is a struct to hold the data for a repository collaborators to be used in other functions and packages\n\n```go\nfunc GetCollaborators(owner, repository, token string) *Collaborators\n```\nGetCollaborators will get a list of collaborators for a repository\n\n```go\ntype PullRequestInputData struct {\n\tOwner,\n\tRepository string\n\tBid int\n}\n```\nReturn values from pullRequestInfo\n\n```go\nfunc PullRequestData(githubrepo, githubref string) PullRequestInputData\n```\nTODO: gather pull request data\n\n```go\ntype PullRequestOutputData struct {\n\tID int64\n\tTitle,\n\tBody,\n\tState,\n\tURL,\n\tCommitID,\n\tUser,\n\tOwner,\n\tRepository string\n\tNumber,\n\tCommits int\n}\n```\nPullRequestOutputData is a struct to hold the data for a pull request to be used in other functions and packages\n\n```go\nfunc GetPullRequestData(githubrepo, githubref, token string) *PullRequestOutputData\n```\nGetPullRequestData will get the data for a pull request and return a struct\n\n","path":"github.com/jackstockley89/github-actions/lib/github","name":"lib","synopsis":"","isRedistributable":true}
