We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f42425 commit 8bbcd9bCopy full SHA for 8bbcd9b
codeflash/optimization/optimizer.py
@@ -317,7 +317,7 @@ def is_pr_draft() -> bool:
317
if pr_number is not None and event_path:
318
with Path(event_path).open() as f:
319
event_data = json.load(f)
320
- return event_data["pull_request"]["draft"]
+ return bool(event_data["pull_request"]["draft"])
321
return False # noqa
322
except Exception as e:
323
logger.warning(f"Error checking if PR is draft: {e}")
0 commit comments