The new github app version of CircleCI will have a pipeline parameter for the repo name (pipeline.trigger_parameters.github_app.repo_name) which is handy, but doesn't help Bitbucket users.
Request to add a pipeline parameter that contains a repo name that is supported by the Bitbucket integration.