Skip to content

Commit

Permalink
Fix team parents ("parent" is an object) (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
SBurwash authored May 20, 2022
1 parent 44564b2 commit c0d7b45
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ dmypy.json

# IDE
.idea/
.vscode/

# Pyre type checker
.pyre/
Expand Down
17 changes: 16 additions & 1 deletion tap_github/organization_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,22 @@ def get_child_context(self, record: Dict, context: Optional[Dict]) -> dict:
th.Property("permission", th.StringType),
th.Property("members_url", th.StringType),
th.Property("repositories_url", th.StringType),
th.Property("parent", th.StringType),
th.Property(
"parent",
th.ObjectType(
th.Property("id", th.IntegerType),
th.Property("node_id", th.StringType),
th.Property("url", th.StringType),
th.Property("html_url", th.StringType),
th.Property("name", th.StringType),
th.Property("slug", th.StringType),
th.Property("description", th.StringType),
th.Property("privacy", th.StringType),
th.Property("permission", th.StringType),
th.Property("members_url", th.StringType),
th.Property("repositories_url", th.StringType),
),
),
).to_dict()


Expand Down

0 comments on commit c0d7b45

Please sign in to comment.