1
0
mirror of synced 2025-12-22 03:21:25 -05:00

🐛 Source Github: add new streams TeamMembers, TeamMemberships (#11893)

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
This commit is contained in:
Serhii Chvaliuk
2022-04-21 18:50:56 +03:00
committed by GitHub
parent 39b074ebb6
commit 8cf45693b1
12 changed files with 227 additions and 14 deletions

View File

@@ -43,6 +43,8 @@ from .streams import (
Reviews,
Stargazers,
Tags,
TeamMembers,
TeamMemberships,
Teams,
Users,
WorkflowRuns,
@@ -184,6 +186,8 @@ class SourceGithub(AbstractSource):
pull_requests_stream = PullRequests(**repository_args_with_start_date)
projects_stream = Projects(**repository_args_with_start_date)
project_columns_stream = ProjectColumns(projects_stream, **repository_args_with_start_date)
teams_stream = Teams(**organization_args)
team_members_stream = TeamMembers(parent=teams_stream, **repository_args)
return [
Assignees(**repository_args),
@@ -215,8 +219,10 @@ class SourceGithub(AbstractSource):
Reviews(parent=pull_requests_stream, **repository_args_with_start_date),
Stargazers(**repository_args_with_start_date),
Tags(**repository_args),
Teams(**organization_args),
teams_stream,
team_members_stream,
Users(**organization_args),
Workflows(**repository_args),
WorkflowRuns(**repository_args),
TeamMemberships(parent=team_members_stream, **repository_args),
]