MCPcopy Create free account
hub / github.com/kubernetes/test-infra / commit

Function commit

gubernator/pull_request.py:31–38  ·  view source on GitHub ↗
(started, finished)

Source from the content-addressed store, hash-verified

29 # pylint: disable=too-many-locals
30
31 def commit(started, finished):
32 if 'pull' in started:
33 return started['pull'].split(':')[-1]
34 if 'version' in started:
35 return started['version'].split('+')[-1]
36 if finished and 'revision' in finished:
37 return finished['revision']
38 return 'unknown'
39
40 # Compute the headings first -- versions and their maximum build counts.
41

Callers 1

builds_to_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected