Search code examples
githubcontinuous-integrationazure-pipelinescicd

Github repo: Trigger pull-request build on azure pipelines if and only if a maintainer of the repo adds a comment '[build]' in the PR-dicsussion


Essentially what the subject says. I found this previous question but it doesn't seem very elegant:

Trigger build for PR after Github comment

Have things improved in the meantime?


Solution

  • Actually yes, there is already a better option to use comment triggers to control the automated PR build, especially for the contributions from a forked source repo.

    enter image description here enter image description here

    The automated PR build will not be triggered until repository owners and collaborators with Write permission comment on the pull request with /AzurePipelines run or /AzurePipelines run <pipeline-name>.

    enter image description here

    Hope the information could help.