Skip to content

Commit

Permalink
label detection removed
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Sep 5, 2024
1 parent 0c6159b commit 4b10e26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
15 changes: 1 addition & 14 deletions src/ontobot_change_agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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: </br> "
# 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 += "</br> The following commands were executed: </br> "
# 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: </br> "
Expand Down
3 changes: 0 additions & 3 deletions src/ontobot_change_agent/constants.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""Constants."""

NEW_TERM_LABEL = "New term request"
SYNONYM_LABEL = "synonym"

# GitHUb Template Attributes.
SYNONYMS = "Synonyms"
SYNONYM_TYPE = "Synonym type"
Expand Down

0 comments on commit 4b10e26

Please sign in to comment.