Skip to content

Commit

Permalink
revert(get_user_repos_installed_app): Rollback the method for obtaini…
Browse files Browse the repository at this point in the history
…ng a user's GitHub organization. (#550)

revert(get_user_repos_installed_app): revert get user repo function
  • Loading branch information
ch-liuzhide authored Dec 2, 2024
1 parent c20a74c commit a843d0d
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()
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 a843d0d

Please sign in to comment.