{"modulePath":"github.com/antham/versem","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype ReleaseService struct {\n\t// contains filtered or unexported fields\n}\n```\nReleaseService deals with git Releases\n\n```go\nfunc NewReleaseService(owner string, repository string, token string) ReleaseService\n```\nNewReleaseService creates a new instance of ReleaseService\n\n```go\nfunc (r ReleaseService) CreateNext(version Version, targetCommitish string) (Tag, error)\n```\nCreateNext release from the given version and the last semver tag at target commitish\n\n```go\ntype SemverLabelService struct {\n\t// contains filtered or unexported fields\n}\n```\nSemverLabelService deals with pull requests to manage semver labels\n\n```go\nfunc NewSemverLabelService(owner string, repository string, token string) SemverLabelService\n```\nNewSemverLabelService creates a new instance of SemverLabelService\n\n```go\nfunc (s SemverLabelService) CreateList() error\n```\nCreateList populates a repository with all labels needed to version pull requests\n\n```go\nfunc (s SemverLabelService) GetFromCommit(commitSha string) (Version, error)\n```\nGetFromCommit find out version label attached to a commit, if the commit doesn't exist or multiple pull requests exist for this commit, it returns an error, if there is more than one this function returns an error, if the commit doesn't belong to a pull request it returns a NORELEASE version\n\n```go\nfunc (s SemverLabelService) GetFromPullRequest(pullRequestNumber int) (Version, error)\n```\nGetFromPullRequest find out semver version label attached to a pull request, if there is none or more than one this function returns an error\n\n```go\ntype Tag struct {\n\tLeadingV      bool\n\tMajor         int\n\tMinor         int\n\tPatch         int\n\tPreRelease    string\n\tBuildMetadata string\n}\n```\nTag represents a semver tag\n\n```go\nfunc NewTagFromString(tag string) (Tag, error)\n```\nNewTagFromString creates a Tag instance from a tag string representation\n\n```go\nfunc (t Tag) String() string\n```\nString converts a Tag to its string representation\n\n```go\ntype Version int\n```\nVersion represents a semver version NORELEASE  =\u003e no version PATCH      =\u003e 0.0.1 MINOR      =\u003e 0.1.0 MAJOR      =\u003e 1.0.0\n\n```go\nconst (\n\t// UNVALIDVERSION is default when no semver version exists\n\tUNVALIDVERSION Version = iota\n\t// NORELEASE don't create any release\n\tNORELEASE\n\t// PATCH represents for instance 0.0.1\n\tPATCH\n\t// MINOR represents for instance 0.1.0\n\tMINOR\n\t// MAJOR represents for instance 1.0.0\n\tMAJOR\n)\n```\n\n```go\nfunc (i Version) String() string\n```\n\n","path":"github.com/antham/versem/github","name":"github","synopsis":"","isRedistributable":true}
