From d6fe366cf5940a9fc9b1009513b7c0d9d7595fa8 Mon Sep 17 00:00:00 2001 From: Galo Navarro Date: Mon, 20 Feb 2023 19:23:04 +0100 Subject: [PATCH] config: add missing tests for new actions Signed-off-by: Galo Navarro --- cmd/action_test.go | 8 ++++++++ test_data/config_v1.yml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/cmd/action_test.go b/cmd/action_test.go index d85c40a..00908c4 100644 --- a/cmd/action_test.go +++ b/cmd/action_test.go @@ -132,6 +132,14 @@ func TestGetLabelerConfigV1(t *testing.T) { "Test2", }, }, + { + Label: "TestDraft", + Draft: "True", + }, + { + Label: "TestMergeable", + Mergeable: "True", + }, }, } diff --git a/test_data/config_v1.yml b/test_data/config_v1.yml index 7cd93ee..1c4599b 100644 --- a/test_data/config_v1.yml +++ b/test_data/config_v1.yml @@ -21,3 +21,7 @@ labels: authors: - "Test1" - "Test2" + - label: "TestDraft" + draft: "True" + - label: "TestMergeable" + mergeable: "True"