Skip to content

Commit 3b32b59

Browse files
authored
Limit PR builds to reduce wasted builds
When copilot spins up a new PR, it starts with an empty one. Our PR pipeline starts running anyway which is just wasting resources. I added a bunch of includes so hopefully in the future, copilot PRs will wait to build until there are changes. Note that this doesn't cover everything in the root node that could need a build but that list is much longer (editorconfig, json, sln, cmd, sh, etc). These are the main ones. Added include paths for various directories and file types.
1 parent c7931e1 commit 3b32b59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.vsts-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ pr:
99
- release/*
1010
- internal/release/*
1111
paths:
12+
include:
13+
- eng
14+
- build
15+
- src
16+
- test
17+
- '*.yml'
18+
- '*.props'
19+
- '*.targets'
1220
exclude:
1321
- documentation/*
1422
- README.md

0 commit comments

Comments
 (0)