From 4b10e26c65753d1e80595f11ac67810ee6639340 Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Thu, 5 Sep 2024 13:09:54 -0500 Subject: [PATCH] label detection removed --- src/ontobot_change_agent/cli.py | 15 +-------------- src/ontobot_change_agent/constants.py | 3 --- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/ontobot_change_agent/cli.py b/src/ontobot_change_agent/cli.py index 40774bf..760effb 100644 --- a/src/ontobot_change_agent/cli.py +++ b/src/ontobot_change_agent/cli.py @@ -29,7 +29,7 @@ process_issue_via_oak, process_new_term_template, ) -from ontobot_change_agent.constants import NEW_TERM_LABEL, OWL_EXTENSION +from ontobot_change_agent.constants import OWL_EXTENSION __all__ = [ "main", @@ -240,19 +240,6 @@ def process_issue( KGCL_COMMANDS = [] formatted_body = "" - # if NEW_TERM_LABEL in issue["labels"]: - # click.echo("New term label found. Processing new term template...") - # formatted_body = "The following input was provided:
" - # KGCL_COMMANDS, body_as_dict, reason = process_new_term_template( - # issue["body"], prefix - # ) - # if reason is None: - # click.echo("No reason found to skip. Converting body to markdown...") - # formatted_body += _convert_to_markdown(body_as_dict) - # formatted_body += "
The following commands were executed:
" - # else: - # click.echo(f"{issue[TITLE]} does not need ontobot's attention since {reason}") - # break if ontobot_pattern.match(issue[BODY].lower()): click.echo("Ontobot apply command found. Extracting KGCL commands...") formatted_body = "The following commands were executed:
" diff --git a/src/ontobot_change_agent/constants.py b/src/ontobot_change_agent/constants.py index ed32436..e3e603b 100644 --- a/src/ontobot_change_agent/constants.py +++ b/src/ontobot_change_agent/constants.py @@ -1,8 +1,5 @@ """Constants.""" -NEW_TERM_LABEL = "New term request" -SYNONYM_LABEL = "synonym" - # GitHUb Template Attributes. SYNONYMS = "Synonyms" SYNONYM_TYPE = "Synonym type"