Get merged branch inside a build

Hi, is there a way to get the base branch upon merge to master?
i.e - there is a branch “stage” and im merging it to “master”, therefor a circeci run will be triggered, but inside that run, how can i know that the trigger is due merge of “stage” branch?