Hi,
we have a pipeline which is defined using the "pull-requests" keyword. See https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Pull-Requests
My problem is that when running that pipeline manually from UI (e.g. because "[no ci]" was added previously to commit message) the pipeline does not behave like a pull-request pipeline anymore. Problems arising from this:
- Step "condition" is only evaluated based on commit, not the whole pull-request.
- The target branch is not merged into the pull-request branch before executing the pipeline.
- PR specific variables like "BITBUCKET_PR_ID" are not set (which I believe our external visual testing integration with https://percy.io/ relies on)
My question is: Can this be considered a bug? As, I have defined the pipeline using the keyword "pull-requests".
Is there any alternative way to make a pipeline behave as a "pull-request" pipeline when triggered manually?
Some background: To reduce costs, we don't want every commit to cause a pipeline run (depending on a developer's git usage habit, a pull-request can have many commits). So, we would like to somehow run the pipelines manually only when needed. But, currently, it's not possible to do that without losing the "pull-request" pipeline behavior.
Thank you for any help.
Regards
Milad