Skip to content

Commit 2cfb11b

Browse files
authored
feat: add html_url to summarized repositories (#6)
* feat: add html_url to summarized repositories * chore: bump version, poetry update
1 parent e72dae2 commit 2cfb11b

File tree

6 files changed

+120
-108
lines changed

6 files changed

+120
-108
lines changed

nodestream_github/interpretations/relationship/repository.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@
1010

1111
from nodestream_github.types import GithubRepo, SimplifiedRepo
1212

13-
_REPO_KEYS_TO_PRESERVE = ["id", "node_id", "name", "full_name", "url", "permission"]
13+
_REPO_KEYS_TO_PRESERVE = [
14+
"id",
15+
"node_id",
16+
"name",
17+
"full_name",
18+
"url",
19+
"html_url",
20+
"permission",
21+
]
1422

1523

1624
def simplify_repo(repo: GithubRepo, *, permission: str | None = None) -> SimplifiedRepo:

poetry.lock

Lines changed: 106 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nodestream-plugin-github"
3-
version = "0.13.1-beta.4"
3+
version = "0.13.1-beta.5"
44
description = ""
55
authors = ["Jon Bristow <[email protected]>"]
66
packages = [

tests/test_orgs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ async def test_orgs_continue_through_org_member_status_fail(
143143
}],
144144
"repositories": [{
145145
"full_name": "octocat/Hello-World",
146+
"html_url": "https://github.com/octocat/Hello-World",
146147
"id": 1296269,
147148
"name": "Hello-World",
148149
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
@@ -258,6 +259,7 @@ async def test_get_orgs(
258259
],
259260
"repositories": [{
260261
"full_name": "octocat/Hello-World",
262+
"html_url": "https://github.com/octocat/Hello-World",
261263
"id": 1296269,
262264
"name": "Hello-World",
263265
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",

tests/test_teams.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ async def test_extract_records(
144144
"privacy": "closed",
145145
"repos": [{
146146
"full_name": "octocat/Hello-World",
147+
"html_url": "https://github.com/octocat/Hello-World",
147148
"id": 1296269,
148149
"name": "Hello-World",
149150
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",

tests/test_users.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async def test_github_user_extractor(
4141
| {
4242
"repositories": [{
4343
"full_name": "octocat/Hello-World",
44+
"html_url": "https://github.com/octocat/Hello-World",
4445
"id": 1296269,
4546
"name": "Hello-World",
4647
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",

0 commit comments

Comments
 (0)