fakegithub

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLabel

func NewLabel(modifiers ...LabelModifier) *github.Label

func NewPullRequestEvent

func NewPullRequestEvent(modifiers ...PullRequestEventModifier) *github.PullRequestEvent

func NewPushEvent

func NewPushEvent(modifiers ...PushEventModifier) *github.PushEvent

Types

type LabelModifier

type LabelModifier func(label *github.Label)

func SetLabelName

func SetLabelName(name string) LabelModifier

type PullRequestEventModifier

type PullRequestEventModifier func(event *github.PullRequestEvent)

func SetPullRequestEventAction

func SetPullRequestEventAction(action string) PullRequestEventModifier

func SetPullRequestEventBranch

func SetPullRequestEventBranch(branch string) PullRequestEventModifier

func SetPullRequestEventLabels

func SetPullRequestEventLabels(labels []string) PullRequestEventModifier

func SetPullRequestEventTriggeredLabel

func SetPullRequestEventTriggeredLabel(label string) PullRequestEventModifier

type PushEventModifier

type PushEventModifier func(event *github.PushEvent)

func SetPushEventBranch

func SetPushEventBranch(branch string) PushEventModifier

func SetPushEventTag

func SetPushEventTag(tag string) PushEventModifier

Jump to

Keyboard shortcuts

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