async def METHOD_NAME(
    self, repo_id: int, commit_id: int | None = None
) -> ProjectIDStr:
    async with self.engine.acquire() as conn:
        if commit_id is None:
            commit = await self._get_HEAD_commit(repo_id, conn)
            assert commit  # nosec
            commit_id = commit.id
            assert commit_id
        return await self._fetch_workcopy_project_id(repo_id, commit_id, conn)