Skip to content

Commit 055dc45

Browse files
committed
fix go_mod regex pattern
1 parent 1deefcd commit 055dc45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.policy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ approval_rules:
119119
if:
120120
changed_files:
121121
paths:
122-
- "^.*/go.mod$"
123-
- "^.*/go.sum$"
122+
- "^(.*/)?(go\\.mod)$" # Root or subdirectories
123+
- "^(.*/)?(go\\.sum)$" # Root or subdirectories
124124
options:
125125
invalidate_on_push: true
126126
ignore_edited_comments: true

0 commit comments

Comments
 (0)