Skip to content

Commit

Permalink
feat: Updated 1 files
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-nightly[bot] authored May 4, 2024
1 parent a3056c9 commit ae0c8c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sweepai/handlers/on_linear_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
def handle_linear_ticket(event: Dict[str, Any]):
try:
ticket_data = event["data"]["issue"]
ticket_labels = ticket_data.get("labels", {})
ticket_labels = ticket_data.get("labels", {}).get("nodes", [])

if any(label["name"].lower() == LINEAR_LABEL_NAME.lower() for label in ticket_labels.get("nodes", [])):
if any(label["name"].lower() == LINEAR_LABEL_NAME.lower() for label in ticket_labels):
logger.info(f"Sweep label detected on Linear ticket {ticket_data['id']}")

on_ticket(
Expand Down

0 comments on commit ae0c8c3

Please sign in to comment.