Skip to content

Commit 54b76a8

Browse files
committed
Use dedicated project type comparison method to determine check run
This change adds the possibility to use projecttype.All in check configurations.
1 parent 439c93d commit 54b76a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/rule/rule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func Runner(project project.Type) {
6262
func shouldRun(ruleConfiguration ruleconfiguration.Type, currentProject project.Type) (bool, error) {
6363
configurationRuleModes := configuration.RuleModes(currentProject.SuperprojectType)
6464

65-
if ruleConfiguration.ProjectType != currentProject.ProjectType {
65+
if !ruleConfiguration.ProjectType.Matches(currentProject.ProjectType) {
6666
return false, nil
6767
}
6868

0 commit comments

Comments
 (0)