Changelog Overhaul #18
|
@ -44,8 +44,10 @@ func LoadConfig() (*Config, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if config.SkipRegex, err = regexp.Compile(config.SkipLabels); err != nil {
|
||||
return nil, err
|
||||
if len(config.SkipLabels) > 0 {
|
||||
if config.SkipRegex, err = regexp.Compile(config.SkipLabels); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return config, nil
|
||||
|
|
|
@ -66,7 +66,7 @@ func runGenerate(cmd *cli.Context) error {
|
|||
for _, pr := range result.Issues {
|
||||
var label string
|
||||
for _, lb := range pr.Labels {
|
||||
if config.SkipRegex.MatchString(lb.GetName()) {
|
||||
if config.SkipRegex != nil && config.SkipRegex.MatchString(lb.GetName()) {
|
||||
continue PRLoop
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user