I created a Bitbucket pipeline where I create a feature Environment per feature branch (on pull request creation event) but I need to add a cleanup step on pull request close or merge
in bitbucket documentation there is no mention of event that can be used.
this is my bitbucket pipeline yaml file for feature deployment:
image: atlassian/default-image:3
pipelines:
pull-requests:
feature/*:
- step:
runs-on:
- self.hosted
- linux.shell
name: feature
script:
- echo "deploy my feature branch for review"