Skip to content

Commit

Permalink
[IMP] git-commit-merge: add new verifications for master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Jul 29, 2019
1 parent 2468944 commit 9265ab9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-commit-merge
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ function check_saas124() {
assert_not_in_diff py '\bself\.phantom_js\(' "Use $(em self.start_tour) helper instead of $(em self.phantom_js)"
}

function check_master() {
assert_not_in_diff py '@api\.multi\b'
assert_not_in_diff py '\.sudo\((?!True\)|False\)|\))' "Use $(em with_user) to change active user"
}

# --------- main

if [[ $VERIFY = true ]]; then
Expand Down

0 comments on commit 9265ab9

Please sign in to comment.