{"repo":"opentable/mercury-bot","free":true,"listed":false,"github":"https://github.com/opentable/mercury-bot","clone":"git clone https://github.com/opentable/mercury-bot.git","description":"Mercury is a bot for handling in-code static translations.","language":"JavaScript","stars":20,"topics":["smartling","github","translations","bot"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Mercury Mercury is a bot for handling in-code static translations. Developed at OpenTable , it takes care of dozens of codebases by making automated Pull Requests to keep the code up to date with our translations. How Mercury works The bot looks for a mercury.json manifest file in a repository's root. It then locates the source files and keeps them updated with Smartling by using its API and making Pull Requests. Please refer to the Mercury consumer integration runbook and FAQ. How to setup the bot in your organization Mercury is available as npm module and needs to be configured to run with github and smartling API tokens. Here is a code example: API Init mercury({ config }) config is an object that requires the following structure: name type mandatory description ---- ---- --------- ----------- github object yes Github config github.apiTokens object yes Github API Tokens. You need at least one read token and one write token github.apiTokens[index].operation string yes Can be either read or write github.apiTokens[index].value string yes The token github.owner string yes The github user associated with the token github.branch string yes The branch that the bot will use to make Pull Requests on his fork repositories object yes The repositories mercury needs to watch and manage repositories[index] array of strings yes The github org that contains the repos to watch repositories[index][item] string yes The github repo to watch smartling object yes The smartling config smartling.","default_branch":null,"files":null,"tree":[],"storefront":"/r/opentable","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/opentable/mercury-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}