Dobby is a GitHub bot that offers automated labeling and translation functionalities for your repository.
Before installing and using Dobby, make sure you have the following:
You can install the required dependencies by running the following commands:
pip install -r requirements.txt
npm install --global smee-client
To use Dobby in your GitHub repository, follow these steps:
Clone the repository to your local machine:
git clone https://github.com/beesaferoot/dobby.git
Install the required dependencies:
pip install -r requirements.txt
Set up the following environment variables:
APP_ID
: Your GitHub App IDPATH_TO_CERT
: The path to your private key certificate fileSet up a Cohere API key and add it as an environment variable named API_KEY
:
APP_KEY
: Your Cohere API key Start the bot:
python3 app.py
Dobby offers two main functionalities: automated labeling and translation.
Dobby can automatically label issues based on the content of the issue using the Cohere's embed model embed-multilingual-v2.0
model.
To translate an issue, mention Dobby in a comment with the query @dobby-gh-bot translate to <target-language>
, where <target-language>
is the target language to be translated to. Dobby will automatically translate the issue into the specified language and post a comment with the translated text. This functionality uses the Cohere's generator model command-xlarge-nightly
.
As we continue to improve our issue labeling bot, there are a few areas we want to focus on:
Subsampling of examples: To optimize our labeling process, we want to be able to subsample already labeled issues.
Support for multiple-labeling: Being able to apply multiple labels to an issue will help us get a more nuanced understanding of each issue.
Platform-agnostic integration: We want to be able to run our bot on any platform, such as Slack or Discord, to make it as widely accessible as possible.
If you would like to contribute to this project, please open an issue 🌚 or submit a pull request. All contributions are welcome!