github

package
v0.0.0-...-a71d288 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 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 GitHubRichClient

type GitHubRichClient struct {
	Client     *github.Client
	Owner      string
	Repository string
}

func NewGitHubClient

func NewGitHubClient(serverUrl *string, repoUrl *string, token *string) (githubRichClient *GitHubRichClient, err error)

NewGitHubClient creates a new GitHub client Needs the ConnectCredentials

func (*GitHubRichClient) CommentHelpToPullRequest

func (ghrc *GitHubRichClient) CommentHelpToPullRequest(number int) (err error)

func (*GitHubRichClient) CreateRelease

func (ghrc *GitHubRichClient) CreateRelease(tagName string, releasePrefix string, releaseBranch string, body string) (createdRelease *github.RepositoryRelease, err error)

CreateRelease

func (*GitHubRichClient) GetIssueComments

func (ghrc *GitHubRichClient) GetIssueComments(issueNumber int) (issueComments []*github.IssueComment, err error)

func (*GitHubRichClient) GetLatestReleaseVersion

func (ghrc *GitHubRichClient) GetLatestReleaseVersion() (latestRelease *github.RepositoryRelease, err error)

GetLatestReleaseVersion

func (*GitHubRichClient) GetPrInfos

func (ghrc *GitHubRichClient) GetPrInfos(prNumber int, mergeCommitSha string) (prInfos *github.PullRequest, err error)

GetPrInfos need the PullRequest-Number

func (*GitHubRichClient) PublishRelease

func (ghrc *GitHubRichClient) PublishRelease(
	tagName string,
	releasePrefix string,
	releaseBranch string,
	body string,
	releaseId int64,
	uploadArtifacts []tools.UploadAsset) (releaseAssets []*github.ReleaseAsset, err error)

PublishRelease

func (*GitHubRichClient) SearchIssuesForOverrides

func (ghrc *GitHubRichClient) SearchIssuesForOverrides(prNumber int) (nextVersion *string, patchLevel *semver.PatchLevel, err error)

func (*GitHubRichClient) TestGitHubClientConnection

func (ghrc *GitHubRichClient) TestGitHubClientConnection() (err error)

Jump to

Keyboard shortcuts

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