MCPcopy
hub / github.com/github/awesome-copilot / get_str

Function get_str

skills/quality-playbook/quality_gate.py:518–523  ·  view source on GitHub ↗

Return data[key] if it's a string, else empty string.

(data, key)

Source from the content-addressed store, hash-verified

516
517
518def get_str(data, key):
519 """Return data[key] if it's a string, else empty string."""
520 if not isinstance(data, dict):
521 return ""
522 val = data.get(key)
523 return val if isinstance(val, str) else ""
524
525
526def count_per_bug_field(bugs_list, field):

Callers 6

check_tdd_sidecarFunction · 0.85
check_tdd_logsFunction · 0.85
check_recheck_sidecarFunction · 0.85
check_version_stampsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected