Skip to content
Snippets Groups Projects
Commit a1cb9507 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

GitHub: record whether the origin is a fork

For now this information is not used downstream, but it can be useful
for specific analysis or one-shot scheduling.
parent a7607abc
No related branches found
No related tags found
No related merge requests found
Pipeline #9796 failed
......@@ -183,6 +183,7 @@ class GitHubLister(Lister[GitHubListerState, List[Dict[str, Any]]]):
url=repo["html_url"],
visit_type="git",
last_update=pushed_at,
is_fork=repo.get("fork"),
)
def commit_page(self, page: List[Dict[str, Any]]):
......
......@@ -52,6 +52,7 @@ def check_origin_4321(swh_scheduler: SchedulerInterface, lister: Lister) -> None
assert origin_4321.last_update == datetime.datetime(
2018, 11, 8, 13, 16, 24, tzinfo=datetime.timezone.utc
)
assert origin_4321.is_fork is not None
def check_origin_5555(swh_scheduler: SchedulerInterface, lister: Lister) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment