INNER CODE UNIT · Python
get_last_tag
deltazefiro/Amarok-Hider · .github/scripts/summarize_translation_contrib.py:18
def get_last_tag() -> str:
"""Get the most recent git tag."""
try:
result = subprocess.run(
["git", "describe", "--tags", "--abbrev=0"],
capture_output=True,
text=True,
check=True,
)
return result.stdout.strip()
except subprocess.CalledProcessError:
return None
def get_commit_list(start: str, end: str) -> List[str]:
"""Get list of commits between start and end."""
commit_range = f"{start}..{end}" if start else end