diff --git a/src/grimoire/routes/plugin.py b/src/grimoire/routes/plugin.py index b957510d..32d198c5 100644 --- a/src/grimoire/routes/plugin.py +++ b/src/grimoire/routes/plugin.py @@ -127,7 +127,7 @@ async def session_context(): # A marker named the project and the hook sent the remote beside it: look # the remote up too, so a disagreement between the two can be said. repo_project_id = 0 - if project_id and repo: + if request.args.get("project_id") and repo: repo_project_id = await repo_bindings_svc.resolve_project(g.user.id, repo) or 0 result = await plugin_ctx_svc.build_session_context( g.user.id, project_id, unbound_repo=unbound_repo,