diff --git a/internal/labeler/labeler_test.go b/internal/labeler/labeler_test.go index d575412..891e1a9 100644 --- a/internal/labeler/labeler_test.go +++ b/internal/labeler/labeler_test.go @@ -497,6 +497,11 @@ func TestInvalidChangelogKindCombinations(t *testing.T) { body: "/kind cleanup\n/kind flake\n```release-note\nNONE\n```", wantAdd: []string{fmt.Sprintf("kind/%s", kinds.Cleanup), fmt.Sprintf("kind/%s", kinds.Flake), labels.ReleaseNoteNoneLabel}, }, + { + name: "test with NONE accepted", + body: "/kind test\n```release-note\nNONE\n```", + wantAdd: []string{fmt.Sprintf("kind/%s", kinds.Test), labels.ReleaseNoteNoneLabel}, + }, } for _, tc := range tests { diff --git a/pkg/kinds/kinds.go b/pkg/kinds/kinds.go index 54f14bb..254ead4 100644 --- a/pkg/kinds/kinds.go +++ b/pkg/kinds/kinds.go @@ -21,6 +21,8 @@ const ( Install = "install" // Bump is a kind label that indicates the PR is a dependency bump. Bump = "bump" + // Test is a kind label that indicates the PR affects tests. + Test = "test" // DeprecatedNewFeature is a deprecated kind label that indicates the PR is a new feature. DeprecatedNewFeature = "new_feature" @@ -40,6 +42,7 @@ var SupportedKinds = map[string]bool{ Flake: true, Install: true, Bump: true, + Test: true, } // DeprecatedKindMap maps old kind values to their new equivalents.