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

Function find_merge_commit

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

Source from the content-addressed store, hash-verified

292 return issue
293
294def find_merge_commit(pr):
295 commit = None
296 for node in pr["timelineItems"]["nodes"]:
297 if not node:
298 continue
299 if not node["__typename"] == "MergedEvent":
300 continue
301 if "commit" in node:
302 commit = node["commit"]["oid"]
303 break
304 return commit
305
306def find_reference_commits(pr):
307 commits = []

Callers 2

get_pullrequestFunction · 0.85
parse_github_projectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected