mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #114194 from dims/add-more-validation-for-copy-paste-errors
Add more validation to rules.yaml
This commit is contained in:
commit
9d02dda241
@ -81,6 +81,10 @@ def main():
|
||||
# And skip validation of publishing rules for it
|
||||
continue
|
||||
|
||||
for item in rule["branches"]:
|
||||
if not item["source"]["dir"].endswith(rule["destination"]):
|
||||
raise Exception("copy/paste error `%s` refers to `%s`" % (rule["destination"],item["source"]["dir"]))
|
||||
|
||||
if branch["name"] != "master":
|
||||
raise Exception("cannot find master branch for destination %s" % rule["destination"])
|
||||
if branch["source"]["branch"] != "master":
|
||||
|
Loading…
Reference in New Issue
Block a user