(refs: list[dict[str, Any]], *, quest_id: str)
| 738 | |
| 739 | |
| 740 | def _default_ref(refs: list[dict[str, Any]], *, quest_id: str) -> str: |
| 741 | ref_names = {item["ref"] for item in refs} |
| 742 | quest_ref = f"quest/{quest_id}" |
| 743 | if quest_ref in ref_names: |
| 744 | return quest_ref |
| 745 | if "main" in ref_names: |
| 746 | return "main" |
| 747 | return refs[0]["ref"] |
| 748 | |
| 749 | |
| 750 | def _compare_commits(repo: Path, *, base: str, head: str) -> list[dict[str, Any]]: |
no outgoing calls
no test coverage detected