You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Error: {dir}/{blueprint_json_path} contains a URL that is not allowed: \n* {url}\n"
60
+
f"Since the current branch is {current_branch}, the URL should start with \n* https://raw.githubusercontent.com/adamziel/blueprints/{current_branch}/\n"
61
+
"In general, all URLs in the blueprint.json file must start with https://raw.githubusercontent.com/adamziel/blueprints/{CURRENT BRANCH}/"
62
+
)
63
+
64
+
ifnoturls_valid:
65
+
continue
66
+
67
+
iflen(errors):
68
+
forerrorinerrors:
69
+
print(error)
70
+
sys.exit(1)
71
+
72
+
73
+
deffind_urls(obj):
74
+
urls= []
75
+
ifisinstance(obj, dict):
76
+
forkey, valueinobj.items():
77
+
ifkey=='url':
78
+
urls.append(value)
79
+
urls.extend(find_urls(value))
80
+
elifisinstance(obj, list):
81
+
foriteminobj:
82
+
urls.extend(find_urls(item))
83
+
returnurls
84
+
85
+
28
86
29
87
defget_touched_directories():
30
88
# Run git diff command to get the list of directories touched in the current branch
0 commit comments