We are trying to get feature branch name on merge to main and this is a single branch merge, no multi branches involved. BRANCH_NAME shows main, not a feature branch name. We tried a lot of things including this (reading from commit msg):
On a more serious note, it’s possible that there is a more effective approach to the situation. Hopefully, someone with more expertise will join the conversation and offer some helpful advice.