Don't require an issue number while in dev mode

This commit is contained in:
Joseph T. Lyons 2024-04-04 21:06:47 -04:00
parent cedbfac844
commit 773a3e83ad

View File

@ -54,11 +54,14 @@ class IssueData:
@app.command()
def main(
issue_reference_number: int,
issue_reference_number: Optional[int] = None,
github_token: Optional[str] = None,
prod: bool = False,
query_day_interval: Optional[int] = None,
) -> None:
if prod and not issue_reference_number:
raise ValueError("Issue reference number must be provided in prod mode")
start_time: datetime = datetime.now()
start_date: datetime | None = None