INNER CODE UNIT · Python
fetch_commit_author_login
fluxerapp/flutter_client · .github/scripts/append_release_direct_commits.py:107
def fetch_commit_author_login(sha: str) -> str:
repository = os.environ["GITHUB_REPOSITORY"]
data = run_gh_json(["api", f"repos/{repository}/commits/{sha}"])
author = data.get("author")
if isinstance(author, dict):
login = author.get("login")
if isinstance(login, str) and login != "":
return login
commit = data.get("commit", {})
author_info = commit.get("author", {})
name = author_info.get("name")
if isinstance(name, str) and name != "":
return name
return "unknown"
def list_commits_since_tag(previous_tag: str | None, commitish: str) -> list[tuple[str, str]]:
if previous_tag is not None: