From b5295df547b401cefff941467f963666823e78c8 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 26 Sep 2022 07:15:33 +0000 Subject: [PATCH] [FIX] web: tooling: enable lint/prettier scrip in 16.0 The web tooling to lint/prettify the js codebase was only enabled for master branches, because we want minimal diffs in stable. However, v16 just got freezed, and we can afford to lint for a while, at least until it is released. This commit enables the script for v16, in addition to master. closes odoo/odoo#101110 X-original-commit: 47ffd1b9efa933fa37c1b629afeeb4e3df123249 Signed-off-by: Samuel Degueldre Signed-off-by: Aaron Bohy (aab) --- addons/web/tooling/hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/tooling/hooks/pre-commit b/addons/web/tooling/hooks/pre-commit index ab12d71189b..a2264ad1679 100755 --- a/addons/web/tooling/hooks/pre-commit +++ b/addons/web/tooling/hooks/pre-commit @@ -1,6 +1,6 @@ #!/bin/bash # run tooling only on branches that start with master to avoid linting noise in stable -if [[ $(git branch --show-current) == master* ]]; then +if [[ $(git branch --show-current) == master* || $(git branch --show-current) == 16.0* ]]; then tooling_dir=$(cd -- "$(dirname "$0")" &> /dev/null && cd .. && pwd) if ! cmp -s -- "$tooling_dir/_package.json" package.json; then echo "Your package.json is out of date, reloading the tooling using the reload script"