1
0
mirror of synced 2025-12-22 19:38:29 -05:00

Source Github: marked start date as optional field (#30971)

Co-authored-by: darynaishchenko <darynaishchenko@users.noreply.github.com>
This commit is contained in:
Daryna Ishchenko
2023-10-03 18:14:05 +03:00
committed by GitHub
parent 72baa595e6
commit 4e44cd03be
8 changed files with 105 additions and 31 deletions

View File

@@ -271,7 +271,8 @@ class SourceGithub(AbstractSource):
"api_url": config.get("api_url"),
"access_token_type": access_token_type,
}
organization_args_with_start_date = {**organization_args, "start_date": config["start_date"]}
start_date = config.get("start_date")
organization_args_with_start_date = {**organization_args, "start_date": start_date}
repository_args = {
"authenticator": authenticator,
@@ -280,7 +281,7 @@ class SourceGithub(AbstractSource):
"page_size_for_large_streams": page_size,
"access_token_type": access_token_type,
}
repository_args_with_start_date = {**repository_args, "start_date": config["start_date"]}
repository_args_with_start_date = {**repository_args, "start_date": start_date}
default_branches, branches_to_pull = self._get_branches_data(config.get("branch", ""), repository_args)
pull_requests_stream = PullRequests(**repository_args_with_start_date)