models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubAction

type GithubAction struct {
	Action           string      `json:"action"`
	ActionPath       string      `json:"action_path"`
	ActionRef        string      `json:"action_ref"`
	ActionRepository string      `json:"action_repository"`
	ActionStatus     string      `json:"action_status"`
	Actor            string      `json:"actor"`
	BaseRef          string      `json:"base_ref"`
	Env              string      `json:"env"`
	Event            interface{} `json:"event"`
	EventName        string      `json:"event_name"`
	EventPath        string      `json:"event_path"`
	Path             string      `json:"path"`
	RefType          string      `json:"ref_type"`
	Repository       string      `json:"repository"`
	RepositoryOwner  string      `json:"repository_owner"`
}

func GetGitHubContext

func GetGitHubContext(ghContext string) (*GithubAction, error)

func (*GithubAction) ToEventPackage

func (g *GithubAction) ToEventPackage() models.EventPackage

func (*GithubAction) UnmarshalJSON

func (g *GithubAction) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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