Add a CIRCLE_BRANCH_BASE env variable
C
Celestine Kao
If you're using GitHub as your VCS, the ghpr orb has a command that sets the base branch in the env var GITHUB_PR_BASE_BRANCH.
r
ruffsl
Related: Provide env variable for branch name targeted by pull request https://circleci.com/ideas/?idea=CCI-I-894