workflow

package
v0.0.0-...-096fdc8 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Paths    []string `yaml:"paths"`
	Branches []string `yaml:"branches"`
	Tags     []string `yaml:"tags"`
}

func (Event) MatchPaths

func (e Event) MatchPaths(paths []string) (bool, error)

type Job

type Job struct {
	Name string `yaml:"name"`

	// path to buildspec.yml
	Buildspec string `yaml:"buildspec"`
}

type On

type On struct {
	Push        Event `yaml:"push"`
	PullRequest Event `yaml:"pull_request"`
}

type Workflow

type Workflow struct {
	Name string         `yaml:"name"`
	On   On             `yaml:"on"`
	Jobs map[string]Job `yaml:"jobs"`
	// contains filtered or unexported fields
}

Workflow represents a workflow. https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions

func Find

func Find(ctx context.Context, owner, repo, commitSHA string) ([]*Workflow, error)

func (Workflow) GetName

func (w Workflow) GetName() string

Jump to

Keyboard shortcuts

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