service

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 7 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 (*GitHub) CreatePullRequestWithEmptyCommit

func (s *GitHub) CreatePullRequestWithEmptyCommit(ctx context.Context,
	org, repo, level string,
	targetBaseBranch string, headBranchSuffix string,
) (int, error)

func (*GitHub) SeparatePullRequests

func (s *GitHub) SeparatePullRequests(ctx context.Context,
	org, repo string, prNum int, targetBaseBranch string, prBranch string,
) (int, int, error)

type GitHubIface

type GitHubIface interface {
	CreatePullRequestWithEmptyCommit(ctx context.Context,
		org, repo, level string,
		targetBaseBranch string, headBranchSuffix string,
	) (prNum int, err error)

	SeparatePullRequests(ctx context.Context,
		org, repo string, prNum int, targetBaseBranch string, prBranch string,
	) (prNumDev, prNumProd int, err error)
}

func NewGitHubService

func NewGitHubService(
	gitcommand gitcommand.GitCommandClient,
	githubapi githubapi.GitHubApiClient,
) GitHubIface

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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