I was wondering if there is an option to delete a branch after a merge build is finished in Circle CI. From what I saw, we only have available a CIRCLE_BRANCH env variable, which provides the name of the branch being built, but I am interested in the branch being merged, so that I can trigger a branch delete from inside the the config.yml file.
This is something that normally is handled automatically, but sometimes doesn’t happen for unknown reasons. The ability to manually delete them is a feature request being tracked here https://ideas.circleci.com/ideas/CCI-I-481
If you search or ask here on the forums I know some other members have used git commands to extract other data that may be helpful, if our built-in envs doesn’t fit your needs.