-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathai-pr-review.azure-pipelines.yml
More file actions
45 lines (38 loc) · 1.09 KB
/
ai-pr-review.azure-pipelines.yml
File metadata and controls
45 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
trigger:
branches:
exclude:
- '*'
pool:
vmImage: 'ubuntu-latest'
pr:
branches:
include:
- '*'
variables:
- group: openAI
jobs:
- job: CodeReview
steps:
- checkout: self
persistCredentials: true
- task: UseDotNet@2
displayName: Install dotnet
inputs:
packageType: 'sdk'
version: '10.x'
includePreviewVersions: false
- task: DotNetCoreCLI@2
displayName: Run targeted parallel integration tests
inputs:
command: 'test'
projects: |
src/AspNet/AspCore.Idempotency.MsSqlStore.Tests/AspCore.Idempotency.MsSqlStore.Tests.csproj
src/EfCore/EfCore.Specifications.Tests/EfCore.Specifications.Tests.csproj
src/EfCore/EfCore.Relational.Helpers.Tests/EfCore.Relational.Helpers.Tests.csproj
arguments: '--configuration Release -- RunConfiguration.MaxCpuCount=0'
- task: GPTPullRequestReview@0
inputs:
api_key: '$(open-ai-key)'
model: 'gpt-4'
includes: 'cs,ts,js'
excludes: 'md,txt,py'