Skip to content

Commit 24c34c2

Browse files
committed
(ELI-466) further tweaks
1 parent 01bfcf9 commit 24c34c2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/workflow/release_type_resolver.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ def latest_final_tag() -> str | None:
6161
return tags[0] if tags else None
6262

6363
def first_commit() -> str:
64+
"""
65+
Returns the first commit of the current branch.
66+
67+
We will never use this for our project since we
68+
already have a release but can be used as a
69+
fallback for new projects.
70+
"""
6471
return run(["git","rev-list","--max-parents=0","HEAD"], check=True).stdout.strip()
6572

66-
def first_parent_merges(base: str, head: str) -> List[str]:
73+
def list_merged_pr_commits(base: str, head: str) -> List[str]:
6774
rng = f"{base}..{head}"
6875
cp = run(["git","rev-list","--merges","--first-parent", rng], check=False)
6976
return [x for x in cp.stdout.splitlines() if x]

0 commit comments

Comments
 (0)