{"modulePath":"github.com/2lambda123/openshift-origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Variables\n\n```go\nvar AllValidators = []func([]util.Commit) error{\n\tValidateUpstreamCommitSummaries,\n\tValidateUpstreamCommitsWithoutGodepsChanges,\n\tValidateUpstreamCommitModifiesOnlyGodeps,\n\tValidateUpstreamCommitModifiesOnlyKubernetes,\n}\n```\n\n```go\nvar CommitSummaryErrorTemplate = `\nThe following UPSTREAM commits have invalid summaries:\n\n{{ range .Commits }}  [{{ .Sha }}] {{ .Summary }}\n{{ end }}\nUPSTREAM commit summaries should look like:\n\n  UPSTREAM: \u003cPR number|carry|drop\u003e: description\n\nUPSTREAM commits which revert previous UPSTREAM commits should look like:\n\n  UPSTREAM: revert: \u003cnormal upstream format\u003e\n\nUPSTREAM commits are validated against the following regular expression:\n\n  {{ .Pattern }}\n\nExamples of valid summaries:\n\n  UPSTREAM: 12345: A kube fix\n  UPSTREAM: \u003ccarry\u003e: A carried kube change\n  UPSTREAM: \u003cdrop\u003e: A dropped kube change\n  UPSTREAM: revert: 12345: A kube revert\n\n`\n```\n\n## Functions\n\n```go\nfunc ValidateGodeps(commits []util.Commit) error\n```\nValidateGodeps invokes hack/godep-restore.sh whenever it finds at least one commit modifying Godeps/Godeps.json file or vendor/ directory.\n\n```go\nfunc ValidateUpstreamCommitModifiesOnlyDeclaredGodepRepo(commits []util.Commit) error\n```\nValidateUpstreamCommitModifiesOnlyDeclaredGodepRepo ensures that an upstream commit only modifies the Godep repo the summary declares.\n\n```go\nfunc ValidateUpstreamCommitModifiesOnlyGodeps(commits []util.Commit) error\n```\nValidateUpstreamCommitModifiesOnlyGodeps ensures that any Godeps commits modify ONLY Godeps files.\n\n```go\nfunc ValidateUpstreamCommitModifiesOnlyKubernetes(commits []util.Commit) error\n```\nValidateUpstreamCommitModifiesOnlyKubernetes ensures that an upstream commit doesn't modify any code outside of kube/kube.\n\n```go\nfunc ValidateUpstreamCommitModifiesSingleGodepsRepo(commits []util.Commit) error\n```\nValidateUpstreamCommitModifiesSingleGodepsRepo returns an error if any upstream commits have changes that span more than one Godeps repo.\n\n```go\nfunc ValidateUpstreamCommitSummaries(commits []util.Commit) error\n```\nValidateUpstreamCommitSummaries ensures that any commits which declare to be upstream match the regular expressions for UPSTREAM summaries.\n\n```go\nfunc ValidateUpstreamCommitsWithoutGodepsChanges(commits []util.Commit) error\n```\nValidateUpstreamCommitsWithoutGodepsChanges returns an error if any upstream commits have no Godeps changes.\n\n## Types\n\n```go\ntype CommitFilesRenderOption int\n```\n\n```go\nconst (\n\tRenderNoFiles CommitFilesRenderOption = iota\n\tRenderOnlyGodepsFiles\n\tRenderOnlyNonGodepsFiles\n\tRenderAllFiles\n)\n```\n\n","path":"github.com/2lambda123/openshift-origin/tools/rebasehelpers/commitchecker","name":"main","synopsis":"","isRedistributable":true}
