MCPcopy Create free account
hub / github.com/HumbleUI/JWM / parse_ref

Function parse_ref

script/build_utils.py:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 return classpath_separator.join(entries)
21
22def parse_ref() -> str:
23 ref = get_arg("ref") or os.getenv('GITHUB_REF')
24 if ref and ref.startswith('refs/tags/'):
25 return ref[len('refs/tags/'):]
26
27def parse_sha() -> str:
28 sha = get_arg("sha") or os.getenv('GITHUB_SHA')

Callers

nothing calls this directly

Calls 1

get_argFunction · 0.85

Tested by

no test coverage detected