{"modulePath":"github.com/franzwilhelm/gitflow-release-notes","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubutil\n\n## Functions\n\n```go\nfunc CompareCommits(base, head string) ([]github.RepositoryCommit, error)\n```\nCompareCommits returns all commits between two github tags or hashes\n\n```go\nfunc CreateRelease(tagName, body string) error\n```\nCreateRelease creates a release in Github\n\n```go\nfunc DeleteRelease(id int64) error\n```\nDeleteRelease deletes a release in Github\n\n```go\nfunc GetPullRequestIssuesBetween(start, end time.Time) (map[string]github.Issue, error)\n```\nGetPullRequestIssuesBetween fetches all pull request issues between two timestamps, using the Github Search api. Returns a map of the merge commit SHAs and the issues.\n\n```go\nfunc GetPullRequests() (map[string]*github.PullRequest, error)\n```\nGetPullRequests fetches the 100 most recent pull requests\n\n```go\nfunc GetRelease(tag string) (*github.RepositoryRelease, error)\n```\nGetRelease fetches a release in Github by tag\n\n```go\nfunc Initialize(accessToken string, r Repository)\n```\nInitialize initializes the github and githubv4 clients If a Github authorized httpClient is passed as an argument, the github clients will be able to fetch data from private resources\n\n## Types\n\n```go\ntype Repository struct {\n\tOwner string\n\tName  string\n}\n```\nRepository holds the owner and name of a Github repository\n\n```go\nvar (\n\t// Repo is the repository used for fetching of data with the Github clients\n\tRepo Repository\n)\n```\n\n```go\nfunc (r *Repository) Full() string\n```\nFull returns the full repository name with the owner included\n\n```go\nfunc (r *Repository) Set(input string) error\n```\nSet is part of the Value interface for cobra custom flags\n\n```go\nfunc (r *Repository) String() string\n```\nString is part of the Value interface for cobra custom flags\n\n```go\nfunc (r *Repository) Type() string\n```\nType is part of the Value interface for cobra custom flags\n\n```go\ntype Tag struct {\n\tData    graphqlTag\n\tVersion *version.Version\n}\n```\nTag holds data about a git tag and it's target commit sha / url\n\n```go\nfunc GetTags() ([]Tag, error)\n```\nGetTags fetches the 100 most recent tags\n\n```go\nfunc (t *Tag) IsBetween(base, head *version.Version) bool\n```\nIsBetween checks if the tag version is part of the release range. This between is inclusive on the head version: base \\\u003c t.Version \\\u003c= head\n\n","path":"github.com/franzwilhelm/gitflow-release-notes/githubutil","name":"githubutil","synopsis":"","isRedistributable":true}
