Skip to content

Commit 7caae65

Browse files
fix: skip updating labels if pr number is zero (#1940)
1 parent ea37861 commit 7caae65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/notifier/github/label.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ func (g *NotifyService) UpdateLabels(ctx context.Context, result terraform.Parse
1515
labelToAdd string
1616
labelColor string
1717
)
18+
if cfg.PR.Number == 0 {
19+
return nil
20+
}
1821

1922
switch {
2023
case result.HasAddOrUpdateOnly:

0 commit comments

Comments
 (0)