Skip to content

Commit

Permalink
run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyl1u committed Nov 15, 2024
1 parent 424c0ce commit 6b31d03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/issue_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def handle_new_issue(
logger.info(f"New issue opened: {issue_number} in {repo_full_name}")
full_issue = f"{issue_title} {issue_body}"

stripped_title = re.sub(r'^(bug:|feat:|enh:|chore:)\s*', '', issue_title, flags=re.IGNORECASE)
stripped_title = re.sub(
r"^(bug:|feat:|enh:|chore:)\s*", "", issue_title, flags=re.IGNORECASE
)
similar_issue = query_similar_issue(stripped_title, repo_id)

if similar_issue and similar_issue["distance"] < 1 - SIMILARITY_THRESHOLD:
Expand Down

0 comments on commit 6b31d03

Please sign in to comment.