GithubHelp home page GithubHelp logo

the-mergementor's Introduction

Mergementor

A way to use https://huggingface.co/microsoft/codereviewer to review your code. And provide you with suggestions to improve your code.

Creating the Development Environment

This project uses Vagrant as a way to create the development environment. To install Vagrant, follow the instructions on the Vagrant website.

Ensure you have also installed VirtualBox, which is used by Vagrant to create the virtual machine. To install VirtualBox, follow the instructions on the VirtualBox website. And verify you have installed the VirtualBox Extension Pack.

Once you have installed Vagrant and VirtualBox, you can create the development environment by running the following command in the root of the project:

    vagrant up

This will create the virtual machine and install all the dependencies. Once the virtual machine is created, the content of the project will be available in the /vagrant folder. In order to access the virtual machine, you can run the following command:

    vagrant ssh

Prepare the environment

The project needs some information to be configured in your VM, this information is sensitive to be saved in Git. So, please, using the _variables.env file, collect all information you need an export the environment varibles in your VM.

You can export manualy by running the command on each new terminal you open, or, modify the .bashrc file using nano $HOME/.bashrc to add the completed content of _variables.env at the end of the file.

You need to pay attention about where you can find the information that _variables.env is requiring:

  • export GITHUB_USER='': Your GitHub username
  • export GITHUB_TOKEN='ghp_...': Your GitHub token, you have to create one in your GitHub account
  • export GITHUB_URL='': Your GitHub URL, for example: https://github.com
  • export GITHUB_API_URL='': Your GitHub API URL, for example: https://api.github.com

But if you are using an on-premise GitHub, you need to ask your GitHub administrator to provide you the information about the GitHub URL and GitHub API URL.

Running the project

Check the internal TODOs to make some changes in the code before to run the project. This will able you to define a sample case of use to test the project.

To run the project, you need to run the following command:

    python3 review_onpremise.py

the-mergementor's People

Contributors

pablotoledo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.