MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / resolve_commit_for

Function resolve_commit_for

scripts/update_cddl.py:188–190  ·  view source on GitHub ↗
(repo, branch)

Source from the content-addressed store, hash-verified

186
187
188def resolve_commit_for(repo, branch):
189 data = get(f"https://api.github.com/repos/{repo}/commits/{branch}", API_HEADERS)
190 return json.loads(data)["sha"]
191
192
193def resolve_path_commit_for(repo, branches, path):

Callers 1

mainFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected