MCPcopy Create free account
hub / github.com/defold/defold / find_reference_commits

Function find_reference_commits

scripts/releasenotes_github_projectv2.py:306–315  ·  view source on GitHub ↗
(pr)

Source from the content-addressed store, hash-verified

304 return commit
305
306def find_reference_commits(pr):
307 commits = []
308 for node in pr["timelineItems"]["nodes"]:
309 if not node:
310 continue
311 if not node["__typename"] == "ReferencedEvent":
312 continue
313 if "commit" in node:
314 commits.append(node["commit"]["oid"])
315 return commits
316
317def get_commit_branches(commit):
318 # print("git branch --contains %s" % commit)

Callers 2

get_pullrequestFunction · 0.85
parse_github_projectFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected