Skip to content

Commit

Permalink
Fix gitlab assigned query
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Collonval committed Feb 23, 2021
1 parent 05e731a commit e806c6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jupyterlab_pullrequests/managers/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ async def get_current_user(self) -> Dict[str, str]:
def get_search_filter(self, username: str, pr_filter: str) -> str:

if pr_filter == "created":
search_filter = "author_username="
search_filter = f"author_username={username}"
elif pr_filter == "assigned":
search_filter = "scope=assigned_to_me&author_username="
search_filter = "scope=assigned_to_me"

return search_filter + username
return search_filter

async def list_prs(self, username: str, pr_filter: str) -> List[Dict[str, str]]:

Expand Down

0 comments on commit e806c6e

Please sign in to comment.