Skip to content

Commit daaaa67

Browse files
authored
Merge pull request #2336 from AzureAD/ameyapat/trigger-pr-to-clone-in-ado
Add job in PR validation pipeline to obtain PRAssistant review comments
2 parents d871dea + 23cf489 commit daaaa67

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

azure_pipelines/pr-validation.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ trigger:
1717

1818
# Define parallel jobs that run build script for specified targets
1919
jobs:
20+
- job: 'PRAssistant'
21+
pool:
22+
vmImage: 'ubuntu-latest'
23+
timeOutInMinutes: 10
24+
displayName: Invoke pipeline PRAssistantInvoker to trigger copilot code review
25+
steps:
26+
- bash: |
27+
echo "Source branch : $(System.PullRequest.SourceBranch) Target branch : $(System.PullRequest.targetBranchName)"
28+
az pipelines run --project 'IDDP' --id 2728 --branch dev --organization 'https://dev.azure.com/IdentityDivision' --variables source_branch=$(System.PullRequest.SourceBranch) target_branch=$(System.PullRequest.targetBranchName)
29+
displayName: 'Invoke pipeline PRAssistantInvoker'
30+
env:
31+
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
32+
failOnStderr: false
2033
- job: 'Validate_Pull_Request'
2134
strategy:
2235
maxParallel: 3

0 commit comments

Comments
 (0)