(pr)
| 304 | return commit |
| 305 | |
| 306 | def 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 | |
| 317 | def get_commit_branches(commit): |
| 318 | # print("git branch --contains %s" % commit) |
no test coverage detected