-
-
Save yelizariev/fa47b465fcf742f0f07b51ffe9e5599b to your computer and use it in GitHub Desktop.
transifex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/it-projects-llc/maintainer-tools/blob/master/tools/tx_pull.py | |
# prepare github bot (profile) | |
# * set public email | |
# * generate access token:['repo', 'read:org', 'write:org', 'admin:org'] | |
# * get admin access to repos (write is not enough as branches are protected with status checks) | |
# install | |
sudo pip install github3.py | |
sudo pip install slumber | |
sudo pip install polib | |
git clone https://github.com/it-projects-llc/maintainer-tools.git | |
cd maintainer-tools/ | |
python -m tools.tx_pull | |
# edit oca.cfg -- set credentials for Github and transifex | |
emacsclient oca.cfg | |
# add to /etc/crontab: | |
# 1 1 * * 7 root cd /root/maintainer-tools/ && python -m tools.tx_pull > /var/log/tx.log 2>&1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[GitHub] | |
username = i18n-bot | |
token = 69.... | |
email = i18n-bot@it-projects.info | |
[odoo] | |
username = | |
password = | |
[Transifex] | |
username = i18n_bot | |
password = us.... | |
num_retries = 3 | |
organization = it-projects-llc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment