From 526a53efabd4ce70c171e92564620357751ad1fe Mon Sep 17 00:00:00 2001 From: Yo! Symfony Date: Tue, 7 Jan 2020 17:45:24 +0100 Subject: [PATCH] Added repo-rules.yml file --- repo-rules.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 repo-rules.yml diff --git a/repo-rules.yml b/repo-rules.yml new file mode 100644 index 0000000..c0f6e5e --- /dev/null +++ b/repo-rules.yml @@ -0,0 +1,16 @@ +config: + source: + path: "src/" + test: + path: "tests/" + +rules: + - rule: "All modified code files must have an associated test file" + mandatory: true + conditions: + - all(plugins.get('github').code, plugins.get('github').test, 'code,test -> test.filename == code.filename') + + - rule: "All commit messages must be between 5 and 100 characters" + mandatory: false + conditions: + - every(plugins.get('github').prCommits, 'x -> x.message.length() >= 5 && x.message.length() <= 100')