run

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name      string
	Version   string
	Tag       string
	RepoOwner string
	RepoName  string
}

type Config added in v0.1.2

type Config struct {
	Files         []*File
	IgnoreActions []*IgnoreAction `yaml:"ignore_actions"`
}

type Controller

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

func New

func New(ctx context.Context) *Controller

func NewController added in v0.1.2

func NewController(repoService RepositoriesService, fs afero.Fs) *Controller

func (*Controller) Init added in v0.1.2

func (ctrl *Controller) Init(configFilePath string) error

func (*Controller) Run

func (ctrl *Controller) Run(ctx context.Context, logE *logrus.Entry, param *ParamRun) error

type File added in v0.1.2

type File struct {
	Pattern string
}

type GetCommitSHA1Result

type GetCommitSHA1Result struct {
	SHA      string
	Response *github.Response
	// contains filtered or unexported fields
}

type IgnoreAction added in v0.1.2

type IgnoreAction struct {
	Name string
}

type ListTagsResult

type ListTagsResult struct {
	Tags     []*github.RepositoryTag
	Response *github.Response
	// contains filtered or unexported fields
}

type ParamRun added in v0.1.2

type ParamRun struct {
	WorkflowFilePaths []string
	ConfigFilePath    string
	PWD               string
}

type RepositoriesService

type RepositoriesService interface {
	ListTags(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryTag, *github.Response, error)
	GetCommitSHA1(ctx context.Context, owner, repo, ref, lastSHA string) (string, *github.Response, error)
}

type RepositoriesServiceImpl

type RepositoriesServiceImpl struct {
	RepositoriesService RepositoriesService
	// contains filtered or unexported fields
}

func (*RepositoriesServiceImpl) GetCommitSHA1

func (repositoriesService *RepositoriesServiceImpl) GetCommitSHA1(ctx context.Context, owner, repo, ref, lastSHA string) (string, *github.Response, error)

func (*RepositoriesServiceImpl) ListTags

func (repositoriesService *RepositoriesServiceImpl) ListTags(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryTag, *github.Response, error)

Jump to

Keyboard shortcuts

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