We are not currently updating branch deployment state when the PR (merge request) is closed / merged. This change detects when the environment is destroyed and then marks the branch as closed.
Note:
We can't at the moment distinguish between closed/merged in gitlab. So branch deployments might get the "closed" icon (red) instead of the "merged" icon (green) in the UI.
We are not currently updating branch deployment state when the PR (merge request) is closed / merged. This change detects when the environment is destroyed and then marks the branch as closed.
Note: We can't at the moment distinguish between closed/merged in gitlab. So branch deployments might get the "closed" icon (red) instead of the "merged" icon (green) in the UI.
Test Plan: Opened and closed the
prha/readme_closed
branch seen here: https://prha-2.dagster.cloud/prod/cloud-settings/deployments https://gitlab.com/prha/quickstart/-/jobs/3793975457