Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert(get_user_repos_installed_app): Rollback the method for obtaining a user's GitHub organization. #550

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@


@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 @@
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
ch-liuzhide marked this conversation as resolved.
Show resolved Hide resolved
repository_config_dao = RepositoryConfigDAO()
installations = repository_config_dao.query_by_owners(
[org.id for org in orgs] + [github_user.id]
Expand Down