actions

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionAddToReleaseVector          string = "release-vector"
	ActionDocsPreviewComment          string = "docs-preview-comment"
	ActionCreateRepositoryMaintainers string = "create-repository-maintainers"
	ActionUpdateSwaggerClients        string = "swagger-clients"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleaseVector

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

func NewReleaseVector

func NewReleaseVector(logger *zap.SugaredLogger, client *clients.Github, rawConfig map[string]interface{}) (*ReleaseVector, error)

func (*ReleaseVector) AddToRelaseVector

func (r *ReleaseVector) AddToRelaseVector(ctx context.Context, p *ReleaseVectorParams) error

AddToRelaseVector adds a release to the release vector in a release repository

type ReleaseVectorParams

type ReleaseVectorParams struct {
	RepositoryName string
	TagName        string
}

type WebhookActions

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

func InitActions

func InitActions(logger *zap.SugaredLogger, cs clients.ClientMap, config config.WebhookActions) (*WebhookActions, error)

func (*WebhookActions) ProcessPullRequestEvent

func (w *WebhookActions) ProcessPullRequestEvent(payload *ghwebhooks.PullRequestPayload)

func (*WebhookActions) ProcessPushEvent

func (w *WebhookActions) ProcessPushEvent(payload *ghwebhooks.PushPayload)

func (*WebhookActions) ProcessReleaseEvent

func (w *WebhookActions) ProcessReleaseEvent(payload *ghwebhooks.ReleasePayload)

func (*WebhookActions) ProcessRepositoryEvent

func (w *WebhookActions) ProcessRepositoryEvent(payload *ghwebhooks.RepositoryPayload)

Jump to

Keyboard shortcuts

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