internal_scm

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

type GitHub struct {
	// contains filtered or unexported fields
}

func NewGitHub

func NewGitHub(repo, token string) *GitHub

NewGitHub creates a new instance

func (*GitHub) CreateIssue added in v0.0.14

func (r *GitHub) CreateIssue(title, body string) (err error)

func (*GitHub) Release

func (r *GitHub) Release(version, commitish string, draft, prerelease bool) (err error)

type GitReleaser

type GitReleaser interface {
	Release(version, commitish string, draft, prerelease bool) (err error)
	CreateIssue(title, body string) (err error)
}

func GetGitProvider

func GetGitProvider(kind, server, repo, token string) GitReleaser

GetGitProvider returns the GitReleaser implement by kind

type Gitea added in v0.0.8

type Gitea struct {
	// contains filtered or unexported fields
}

func NewGitea added in v0.0.8

func NewGitea(server, repo, token string) *Gitea

func (*Gitea) CreateIssue added in v0.0.14

func (r *Gitea) CreateIssue(title, body string) (err error)

func (*Gitea) Release added in v0.0.8

func (r *Gitea) Release(version, commitish string, draft, prerelease bool) (err error)

type Gitlab added in v0.0.8

type Gitlab struct {
	// contains filtered or unexported fields
}

func NewGitlab added in v0.0.8

func NewGitlab(repo, token string) *Gitlab

NewGitlab creates a new instance

func (*Gitlab) CreateIssue added in v0.0.14

func (r *Gitlab) CreateIssue(title, body string) (err error)

func (*Gitlab) Release added in v0.0.8

func (r *Gitlab) Release(version, commitish string, draft, prerelease bool) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL