Commit d8451ae 1 parent 7a444b1 commit d8451ae Copy full SHA for d8451ae
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package bot
18
18
19
19
import (
20
20
"context"
21
+ "regexp"
21
22
"strings"
22
23
23
24
"github.com/gravitational/trace"
@@ -28,6 +29,10 @@ import (
28
29
"github.com/gravitational/shared-workflows/bot/internal/review"
29
30
)
30
31
32
+ // isCRDRegex matches Teleport operator CRD file paths.
33
+ // Those files receive a special treatment as they're automatically generated.
34
+ var isCRDRegex = regexp .MustCompile (`.*/resources\.teleport\.dev_[[:alpha:]]+\.yaml$` )
35
+
31
36
// Client implements the GitHub API.
32
37
type Client interface {
33
38
// RequestReviewers is used to assign reviewers to a Pull Request.
@@ -265,7 +270,8 @@ func skipFileForSizeCheck(name string) bool {
265
270
strings .HasSuffix (name , "_pb.d.ts" ) ||
266
271
strings .HasSuffix (name , ".json" ) ||
267
272
strings .Contains (name , "webassets/" ) ||
268
- strings .Contains (name , "vendor/" )
273
+ strings .Contains (name , "vendor/" ) ||
274
+ isCRDRegex .MatchString (name )
269
275
}
270
276
271
277
func isReleaseBranch (branch string ) bool {
You can’t perform that action at this time.
0 commit comments