rlsbl v0.40.1 /rlsbl.changelog.resolve
On this page

Resolve abbreviated git commit hashes in changelog entries to full SHA-1 hashes and validate they exist in the repository.

#rlsbl.changelog.resolve

#rlsbl.changelog.resolve

Resolve abbreviated git commit hashes in changelog entries to full SHA-1 hashes and validate they exist in the repository.

#resolve_hash

python
def resolve_hash(hash_str: str) -> str | None

Resolve a (possibly abbreviated) commit hash to a full 40-char SHA.

Returns None if the hash doesn't resolve in the current repo.

#resolve_hashes

python
def resolve_hashes(hashes: list[str]) -> dict[str, str | None]

Batch-resolve a list of commit hashes.

Returns a mapping from each input hash to its full 40-char SHA, or None if it doesn't resolve.