MCPcopy Create free account
hub / github.com/CoderLuii/HolyClaude / run_dry_run

Function run_dry_run

scripts/notify.py:137–144  ·  view source on GitHub ↗
(flag_file, environ, debug=False, stream=sys.stderr)

Source from the content-addressed store, hash-verified

135
136
137def run_dry_run(flag_file, environ, debug=False, stream=sys.stderr):
138 flag_enabled = os.path.isfile(flag_file)
139 urls = collect_notify_urls(environ)
140 results = validate_notify_urls(urls)
141 ok = flag_enabled and bool(urls) and all(accepted for _url, accepted, _reason in results)
142 if debug:
143 write_debug(stream, flag_enabled, urls, results)
144 return 0 if ok else 1
145
146
147def send_notifications(urls, title, body, notify_type):

Callers 1

mainFunction · 0.85

Calls 3

collect_notify_urlsFunction · 0.85
validate_notify_urlsFunction · 0.85
write_debugFunction · 0.85

Tested by

no test coverage detected