github

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Context            context.Context
	UserId             string
	AccessToken        string
	ProjectURL         string
	Repository         string
	ApiURL             string
	GHClient           *github.Client
	PropagationTargets []config.PropagationTarget
	ConfigUpdates      []config.ConfigUpdate
	DryRun             bool
	GoGitConfig        common.GoGitRepository
}

func NewClient

func NewClient(client Client) Client

func (Client) CheckCreateBranch

func (g Client) CheckCreateBranch(baseBranch string, version string, prefix string) (string, error)

func (Client) CheckCreateFileMergeRequest

func (g Client) CheckCreateFileMergeRequest(source string, target string) error

func (Client) CheckCreateReleasePullRequest

func (g Client) CheckCreateReleasePullRequest(source string, target string, versions config.Versions) error

func (Client) CheckRelease

func (g Client) CheckRelease(version config.Versions) (bool, error)

func (Client) CommitFile

func (g Client) CommitFile(branchName string, changeset []common.ChangeSet) error

func (Client) CommitManifest

func (g Client) CommitManifest(branchName string, content string, versions releaserconfig.Versions, extraFiles []releaserconfig.ExtraFileConfig) error

func (Client) CreateRelease

func (g Client) CreateRelease(baseBranch string, version config.Versions, description string) error

func (Client) GetCommitsSinceRelease

func (g Client) GetCommitsSinceRelease(sinceRelease string) ([]changelog.Commit, error)

func (Client) GetHighestRelease

func (g Client) GetHighestRelease() (semver.Version, error)

func (Client) ReplaceTaggedLines

func (g Client) ReplaceTaggedLines(filenames []string, sourceTag string, replaceTag string) ([]common.ChangeSet, error)

Jump to

Keyboard shortcuts

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