From 17b7b1b50e71bb719410d885ac7057fb409ea5e0 Mon Sep 17 00:00:00 2001 From: John Mertic Date: Sun, 18 Oct 2020 09:11:13 -0400 Subject: [PATCH 1/3] Add "dirs": true to check for multiple pull request and issue templates Signed-off-by: John Mertic --- rulesets/default.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rulesets/default.json b/rulesets/default.json index 06f9dc4b..ec6f9d48 100644 --- a/rulesets/default.json +++ b/rulesets/default.json @@ -163,15 +163,17 @@ }, "github-issue-template-exists": { "level": "error", + "dirs": true, "rule": { "type": "file-existence", "options": { - "globsAny": ["ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE*"] + "globsAny": ["ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE/*"] } } }, "github-pull-request-template-exists": { "level": "error", + "dirs": true, "rule": { "type": "file-existence", "options": { From bd0690af559967a555b2f047e53180729059d5ab Mon Sep 17 00:00:00 2001 From: John Mertic Date: Sun, 18 Oct 2020 09:14:18 -0400 Subject: [PATCH 2/3] Update default.json Signed-off-by: John Mertic --- rulesets/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rulesets/default.json b/rulesets/default.json index ec6f9d48..47cdcd65 100644 --- a/rulesets/default.json +++ b/rulesets/default.json @@ -167,7 +167,7 @@ "rule": { "type": "file-existence", "options": { - "globsAny": ["ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE/*"] + "globsAny": ["ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE*"] } } }, From dfdc957343ef6719279a4905c7919f4279de8005 Mon Sep 17 00:00:00 2001 From: John Mertic Date: Sun, 18 Oct 2020 09:20:58 -0400 Subject: [PATCH 3/3] Wrong spot :-( Signed-off-by: John Mertic --- rulesets/default.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rulesets/default.json b/rulesets/default.json index 47cdcd65..775ab2e6 100644 --- a/rulesets/default.json +++ b/rulesets/default.json @@ -163,20 +163,20 @@ }, "github-issue-template-exists": { "level": "error", - "dirs": true, "rule": { "type": "file-existence", "options": { + "dirs": true, "globsAny": ["ISSUE_TEMPLATE*", ".github/ISSUE_TEMPLATE*"] } } }, "github-pull-request-template-exists": { "level": "error", - "dirs": true, "rule": { "type": "file-existence", "options": { + "dirs": true, "globsAny": ["PULL_REQUEST_TEMPLATE*", ".github/PULL_REQUEST_TEMPLATE*"] } }