Skip to content

Commit 8bbcd9b

Browse files
type casting
1 parent 7f42425 commit 8bbcd9b

File tree

2 files changed

+2283
-1
lines changed

2 files changed

+2283
-1
lines changed

codeflash/optimization/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def is_pr_draft() -> bool:
317317
if pr_number is not None and event_path:
318318
with Path(event_path).open() as f:
319319
event_data = json.load(f)
320-
return event_data["pull_request"]["draft"]
320+
return bool(event_data["pull_request"]["draft"])
321321
return False # noqa
322322
except Exception as e:
323323
logger.warning(f"Error checking if PR is draft: {e}")

0 commit comments

Comments
 (0)