Skip to content

Instantly share code, notes, and snippets.

@StefanRijnhart
Last active July 20, 2023 17:29
Show Gist options
  • Save StefanRijnhart/b6c5c258d453a3a484d071d312407012 to your computer and use it in GitHub Desktop.
Save StefanRijnhart/b6c5c258d453a3a484d071d312407012 to your computer and use it in GitHub Desktop.
# Testing https://github.com/OCA/oca-addons-repo-template/pull/198
oca-clone-everything --target-branch 16.0
sed -i 's/oca\/oca-addons-repo-template/moduon\/oca-addons-repo-template/i' */.copier-answers.yml
sed -i "s/repo_description: null/repo_description: 'null'/" */.copier-answers.yml
ls * -d |while read line; do
if [ -e "$line/.copier-answers.yml" ]; then
echo "$line"
copier recopy -lw --trust --vcs-ref bump-pylint-odoo "$line"
fi
done
ls * -d |while read line; do
if [ -e "$line/.copier-answers.yml" ]; then
echo
echo "$line"
pushd "$line"
pre-commit run -a
popd
fi
done | tee /tmp/pre-commit-all16.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment