diff --git a/yaml/build_test.go b/yaml/build_test.go index f3576327..8da97c90 100644 --- a/yaml/build_test.go +++ b/yaml/build_test.go @@ -164,7 +164,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Image: "openjdk:latest", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -193,7 +193,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Image: "openjdk:latest", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -223,7 +223,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Image: "plugins/docker:18.09", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -351,7 +351,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Name: "install", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -387,7 +387,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Image: "openjdk:latest", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -423,7 +423,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Image: "openjdk:latest", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -467,7 +467,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Name: "install", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -496,7 +496,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Image: "openjdk:latest", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -525,7 +525,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Image: "openjdk:latest", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", }, @@ -573,7 +573,7 @@ func TestYaml_Build_UnmarshalYAML(t *testing.T) { Name: "install", Pull: "always", Ruleset: Ruleset{ - If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize"}}, + If: Rules{Event: []string{"push", "pull_request:opened", "pull_request:synchronize", "pull_request:reopened"}}, Matcher: "filepath", Operator: "and", },