Documentation ¶
Index ¶
- Constants
- Variables
- func Client() *github.Client
- func CreateReference(gitHubSlug string, reference string, sha string) error
- func CreateRelease(gitHubSlug, body, tagName, sha string) (*github.RepositoryRelease, error)
- func ListTags(gitHubSlug string) ([]*github.Reference, error)
- func TagName(ref *github.Reference) string
- func ToOwnerRepo(gitHubSlug string) (string, string)
- func UploadAssetsToRelease(gitHubSlug string, releaseResponse *github.RepositoryRelease, ...) error
Constants ¶
View Source
const ReferenceTagPrefix = "refs/tags/"
ReferenceTagPrefix References that have this prefix are tags
Variables ¶
View Source
var ( // GitHubToken stores the token to be used to authenticate with GitHub GitHubToken string )
Functions ¶
func CreateReference ¶
CreateReference creates a reference in GitHub. References should be of the format: refs/type/name, e.g.: refs/tag/v1.2.0
func CreateRelease ¶
func CreateRelease(gitHubSlug, body, tagName, sha string) (*github.RepositoryRelease, error)
CreateRelease creates a release for the repository as specified
func ToOwnerRepo ¶
ToOwnerRepo transforms a GitHub slug into owner and repo strings "VinnieApps/cicd-toolbox" -> "VinnieApps", "cicd-toolbox"
func UploadAssetsToRelease ¶
func UploadAssetsToRelease(gitHubSlug string, releaseResponse *github.RepositoryRelease, assetsToUpload []string) error
UploadAssetsToRelease uploads the specified assets to the specified release in the specified repository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.