Documentation
¶
Index ¶
Constants ¶
View Source
const (
RepoDispatchActionUpdate = "update-dependency"
)
Variables ¶
This section is empty.
Functions ¶
func IssueComment ¶
func IssueComment(_ context.Context, evt *github.IssueCommentEvent) error
IssueComment is for debugging.
func NewHandlers ¶
func NewHandlers(p HandlerParams) *actions.Handlers
NewHandlers returns Actions handlers for processing updates
Types ¶
type Environment ¶
type Environment struct {
actions.Environment
// Inputs common to every updater:
GitHubToken string `env:"INPUT_TOKEN"`
InputSigningKey string `env:"INPUT_SIGNING_KEY"`
InputGroups string `env:"INPUT_GROUPS"`
InputBranches string `env:"INPUT_BRANCHES"`
NoPush bool `env:"INPUT_NO_PUSH"`
InputIgnore string `env:"INPUT_IGNORE"`
InputDispatchOnRelease string `env:"INPUT_DISPATCH_ON_RELEASE"`
}
Environment extends actions.Environment with configuration specific to update actions.
func (*Environment) Branches ¶
func (e *Environment) Branches() (branches []string)
Branches returns slice of all configured branches to update.
func (*Environment) Ignored ¶
func (e *Environment) Ignored(path string) bool
func (*Environment) ReleaseDispatchRepos ¶
func (e *Environment) ReleaseDispatchRepos() (repos []string)
func (*Environment) SigningKey ¶
func (e *Environment) SigningKey() []byte
type HandlerParams ¶
type HandlerParams interface {
UpdateEnvironment
updater.Factory
}
type RepoDispatchActionUpdatePayload ¶
type RepoDispatchActionUpdatePayload struct {
Updater string `json:"updater"`
Path string `json:"path"`
Next string `json:"next"`
Feedback RepoDispatchActionUpdatePayloadFeedback `json:"feedback"`
}
type UpdateEnvironment ¶
type UpdateEnvironment interface {
// contains filtered or unexported methods
}
UpdateEnvironment smuggles *Environment out of structs that embed one.
Click to show internal directories.
Click to hide internal directories.