Newer
Older
if not commit_sha_valid:
preview_sha = None
Andreas Klöckner
committed
if preview_sha is not None:
sha = preview_sha
def list_flow_ids(repo: Repo_ish, commit_sha: bytes) -> list[str]:
flow_ids = []
try:
flows_tree = get_repo_blob(repo, "flows", commit_sha)
except ObjectDoesNotExist:
# That's OK--no flows yet.
pass
else:
for entry in flows_tree.items():
flow_ids.append(entry.path[:-4].decode("utf-8"))