Getting remote/branch_name from GitHub


I’am using Multibranch pipeline project to trigger on Pull Request from GitHub organisation. I would like to get the branch name like remote/branch_name but the env variable CHANGE_BRANCH gives me only the branch_name. I need this information because sometimes the PR is done from the organization remote. In this case the branch name will be org-remote/branch_name. Sometimes the PR is done from the user remote fork. The branch name will be user-remote/branch_name.
I plan to use remote/branch_name in my pipeline.

I was wondering how I can get this extended branch name information.

Thank you for our help!

Kind regards!