Skip to content

Commit

Permalink
revert(get_user_repos_installed_app): revert get user repo function
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-liuzhide committed Dec 2, 2024
1 parent bc76d17 commit ec71a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/github_app/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def github_app_webhook(


@router.get("/user/repos_installed_app")
def get_user_repos_installed_app_(
def get_user_repos_installed_app(
user: Annotated[User | None, Depends(get_user)] = None
):
"""
Expand All @@ -146,7 +146,7 @@ def get_user_repos_installed_app_(
auth = Auth.Token(token=user.access_token)
g = Github(auth=auth)
github_user = g.get_user()
orgs = get_user_orgs(github_user.login, auth.token)
orgs = github_user.get_orgs()

Check warning on line 149 in server/github_app/router.py

View check run for this annotation

Codecov / codecov/patch

server/github_app/router.py#L149

Added line #L149 was not covered by tests
repository_config_dao = RepositoryConfigDAO()
installations = repository_config_dao.query_by_owners(
[org.id for org in orgs] + [github_user.id]
Expand Down

0 comments on commit ec71a9a

Please sign in to comment.