← Каталог
Справочник по Azure Repos Git — Интеграция с Azure Pipelines — триггеры на Pull Request
Фрагмент из «Справочник по Azure Repos Git»: Интеграция с Azure Pipelines — триггеры на Pull Request.
trigger: none # отключаем обычный push-триггер
pr:
branches:
include:
- main
- release/*
paths:
include:
- src/
exclude:
- docs/
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo "Running PR validation"
- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: '**/*Tests/*.csproj' trigger: none # отключаем обычный push-триггер
pr:
branches:
include:
- main
- release/*
paths:
include:
- src/
exclude:
- docs/
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo "Running PR validation"
- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: '**/*Tests/*.csproj'