Spaces:
Runtime error
Runtime error
Update app.py
Browse files21 unmodified lines222324252627282930106 unmodified lines13713813914014114214314421 unmodified linesimport jsondef extract_branch_info(stream_id, server_url=None, token=None):if server_url and token:106 unmodified linesif existing_depends_on:for dep_name in existing_depends_on:if dep_name in latest_updates and latest_updates[dep_name] > latest_update:outdated = Truebreakif not latest_update:status_tag = "empty"elif outdated:21 unmodified lines222324252627282930313233106 unmodified lines14014114214314414514614714814921 unmodified linesimport json# dictionary that collects tags that can be added to commit messages.# key -> column name in notion# value -> possible valuestag_dict = {"status_tag":["WIP", "ReviewNeeded", "Final"]}# tag part seperator -> #+ , other_tagsdef extract_branch_info(stream_id, server_url=None, token=None):if server_url and token:106 unmodified linesif existing_depends_on:for dep_name in existing_depends_on:if dep_name in latest_updates and latest_updates[dep_name] > latest_update:if "isConnected" not in branch[dep_name]["commit_message"]:# exclude commits where isConnected was usedoutdated = Truebreakif not latest_update:status_tag = "empty"elif outdated:
app.py+9-4