I have a pipeline that does some checks, some builds and finally deploys to review apps.
Is there a way to allow certain check jobs to fail and still continue with the pipeline (like
allow_failure does) but block merging in this case?
Form my perspective it’s totally ok that certain jobs fail during development. I still want that code to deploy in review apps if the build steps succeed but I certainly do not want code that broke a job be merged.
I had the idea to set
allow_failure depending on the draft status (or the other way round). But I don’t think there is a way to trigger the pipeline when the draft status is removed so failing pipelines could be merged if the draft status is removed after the pipeline finished.
Do you have ideas how to solve this?