Skip to content

beesaferoot/dobby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dobby

Dobby is a GitHub bot that offers automated labeling and translation functionalities for your repository.

Prerequisites

Before installing and using Dobby, make sure you have the following:

Requirements

  • Python 3.10.x
  • npm

You can install the required dependencies by running the following commands:

  • pip install -r requirements.txt

  • npm install --global smee-client

Installation

To use Dobby in your GitHub repository, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/beesaferoot/dobby.git

  2. Install the required dependencies:

    pip install -r requirements.txt

  3. Set up the following environment variables:

    • APP_ID: Your GitHub App ID
    • PATH_TO_CERT: The path to your private key certificate file
  4. Set up a Cohere API key and add it as an environment variable named API_KEY:

    • APP_KEY: Your Cohere API key
  5. Start the bot:

    python3 app.py

Usage

Dobby offers two main functionalities: automated labeling and translation.

Automated Labeling

Dobby can automatically label issues based on the content of the issue using the Cohere's embed model embed-multilingual-v2.0 model.

Translation

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.

Future Works and Considerations

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.

Contributing

If you would like to contribute to this project, please open an issue 🌚 or submit a pull request. All contributions are welcome!

About

A hopefully useful GitHub bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages