Branch Name during Build

Why is Branch (process.env.BRANCH or $BRANCH in bash) have value of Merge request and id. why not actual branch name as of git. and is there anyway to get actual branch name during build process to ignore certain named branch from building.

branch feature/some-branch-name
netlify Branch env value merge-requests/34/head

Hey @ravi,

Sorry for the delay. This thread got missed due to some problem with our issue tracking system.

Are you still experiencing issues?

late but thanks for your response.

yes i am still having looking for the answer, now we have some workaround. but if we can have actual branch name during bild process and ignore/cancel some from build/deploy, according branch to name the will be great.

for example, branch name have “debug” should be ignored.

Which site is this about?