CircleCI Ideas

Add a CIRCLE_BRANCH_BASE env variable

I need a way to only apply CI validations to the diff between the PR and where it's heading to.

You have a `CIRCLE_BRANCH` env variable which gives me the branch of the PR, but I'd also need to branch that the PR is heading to (master, develop, etc)

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Mar 13 2019
  • Taking votes
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    06 May 21:25

    Related: Provide env variable for branch name targeted by pull request  
    https://circleci.com/ideas/?idea=CCI-I-894