Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
188
def
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
193
def
resolve_path_commit_for(repo, branches, path):
Callers
1
main
Function · 0.85
Calls
1
get
Function · 0.70
Tested by
no test coverage detected