Documentation
¶
Index ¶
Constants ¶
const ( PackageEcosystemBundler = "bundler" PackageEcosystemCargo = "cargo" PackageEcosystemComposer = "composer" PackageEcosystemDocker = "docker" PackageEcosystemElm = "elm" PackageEcosystemGitsubmodule = "gitsubmodule" PackageEcosystemGitHubActions = "github-actions" PackageEcosystemGomod = "gomod" PackageEcosystemGradle = "gradle" PackageEcosystemMaven = "maven" PackageEcosystemMix = "mix" PackageEcosystemNpm = "npm" PackageEcosystemNuGet = "nuget" PackageEcosystemPip = "pip" PackageEcosystemTerraform = "terraform" )
const ( ScheduleIntervalDaily = "daily" ScheduleIntervalWeekly = "weekly" ScheduleIntervalMonthly = "monthly" )
const ( ScheduleIntervalDayMonday = "monday" ScheduleIntervalDayTuesday = "tuesday" ScheduleIntervalDayWednesday = "wednesday" ScheduleIntervalDayThursday = "thursday" ScheduleIntervalDayFriday = "friday" ScheduleIntervalDaySaturday = "saturday" ScheduleIntervalDaySunday = "sunday" )
Variables ¶
This section is empty.
Functions ¶
func IsValidPackageEcosystem ¶
func IsValidScheduleInterval ¶
Types ¶
type Allow ¶
type CommitMessage ¶
type CommitMessage struct { Prefix string `yaml:"prefix,omitempty"` PrefixDevelopment string `yaml:"prefix-development,omitempty"` Include string `yaml:"include,omitempty"` }
CommitMessage docs: https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#commit-message
func NewCommitMessage ¶
func NewCommitMessage(prefix, prefixDevelopment, include string) *CommitMessage
type Config ¶
Config for dependabot
func (*Config) HasPackageEcosystem ¶
HasPackageEcosystem return true if the given package-ecosystem string exist at the Updates array
type Ignore ¶
type Ignore struct { DependencyName string `yaml:"dependency-name,omitempty"` Versions []string `yaml:"versions,omitempty"` }
Ignore docs: https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#ignore
func (*Ignore) AddVersion ¶
type PullRequestBranchName ¶
type PullRequestBranchName struct {
Separator string `yaml:"separator"`
}
PullRequestBranchName docs: https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#pull-request-branch-nameseparator
func NewPullRequestBranchName ¶
func NewPullRequestBranchName(separator string) *PullRequestBranchName
type Schedule ¶
type Schedule struct { Interval string `yaml:"interval"` Day string `yaml:"day,omitempty"` Time string `yaml:"time,omitempty"` Timezone string `yaml:"timezone,omitempty"` }
Schedule docs: https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#scheduleinterval
func NewSchedule ¶
type Update ¶
type Update struct { PackageEcosystem string `yaml:"package-ecosystem"` Directory string `yaml:"directory"` Schedule Schedule `yaml:"schedule"` Allow []*Allow `yaml:"allow,omitempty"` Assignees []*string `yaml:"assignees,omitempty"` CommitMessage *CommitMessage `yaml:"commit-message,omitempty"` Ignore []*Ignore `yaml:"ignore,omitempty"` Labels []*string `yaml:"labels,omitempty"` Milestone *int `yaml:"milestone,omitempty"` OpenPullRequestsLimit *int `yaml:"open-pull-requests-limit,omitempty"` PullRequestBranchName *PullRequestBranchName `yaml:"pull-request-branch-name,omitempty"` RebaseStrategy *string `yaml:"rebase-strategy,omitempty"` Reviewers []*string `yaml:"reviewers,omitempty"` TargetBranch *string `yaml:"target-branch,omitempty"` VersioningStrategy *string `yaml:"versioning-strategy,omitempty"` }
Update docs: https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates