Skip to content

Commit

Permalink
Added repo-rules.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
yosymfony authored Jan 7, 2020
1 parent bdab92a commit 526a53e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions repo-rules.yml
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 526a53e

Please sign in to comment.