Select Git revision
-
Jamie Tanna authored
As part of #277, we want to introduce the ability to `warn` in policies, as well as `deny`. This requires we introduce the new level, and make it possible to retrieve the `warn` rule out of policies. We can also refactor the key logic for evaluating policies' evaluation results into a helper method, simplifying the work that needs to be done and making it clearer in what cases something happens. Closes #277.
Jamie Tanna authoredAs part of #277, we want to introduce the ability to `warn` in policies, as well as `deny`. This requires we introduce the new level, and make it possible to retrieve the `warn` rule out of policies. We can also refactor the key logic for evaluating policies' evaluation results into a helper method, simplifying the work that needs to be done and making it clearer in what cases something happens. Closes #277.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
level.go 160 B
package policies
type Level string
func (l Level) String() string {
return string(l)
}
const (
LevelError Level = "ERROR"
LevelWarning Level = "WARN"
)