func (c *condition) includes(v string) bool {
	for _, pattern := range c.Include {
		if ok, _ := filepath.Match(pattern, v); ok {
			return true
		}
	}
	return false
}
includes returns true if the string matches the include
patterns.
package plugin
import (
	"github.com/drone/drone-go/drone"
	filepath "github.com/bmatcuk/doublestar"
	"github.com/sirupsen/logrus"
)
func (c *condition) match(v string) bool {
	if c.excludes(v) {
		return false
	}
	if c.includes(v) {
		return true
	}
	if len(c.Include) == 0 {
		return true
	}
	return false
}