Reputation: 2089
I'm currently writing some custom pipelines for my team to enforce our versioning, commit & merge strategy standards, such as:
Is there a way to trigger this pipeline to run when a pull requests title is updated?
The workflow at the moment is quite strict: When a dev creates their PR, it runs this pipeline automatically ensuring their PR title is correctly formatted, which then fails because:
If their PR title is incorrect to begin with, they also need to re-run this pipeline.
Is this something that can be achieved?
Looking at the Azure Trigger Types I don't see anything immediately.
Upvotes: 1
Views: 1439
Reputation: 134
There is no way to trigger a pipeline automatically upon a PR title change. But I would like to suggest you to go with a comment trigger. Since developers anyway need to update the title, they can put a comment to the PR at the same time. That can trigger the pipeline with a minimum manual effort. Following comments can be used.
/azp run
/azp run <pipeline-name>
or
/AzurePipelines run
/AzurePipelines run <pipeline-name>
P.S. The one who comments on the PR should have at least write access on the repository to trigger the pipeline.
Upvotes: 0
Reputation: 13444
On Azure DevOps, currently it is not supported to trigger the pipeline when the PR title changed event occurs.
The PR triggers on Azure DevOps can only support below events:
Upvotes: 2