Coder Social home page Coder Social logo

graphql-vigilant-bot's Introduction

GraphQLVigilantBot

Installation

First clone this repository, then check .env.example for which environment variables you need to set before running this bot. We recommend you to create a new GitHub account for your bot, which is going to be used to author the comments.

Now run

npm install
npm start

Using Docker

A Dockerfile is also provided, you can use it to run the bot:

docker build -t graphql-vigilant-bot .
docker run --env-file ./.env -p 7010:7010 graphql-vigilant-bot

Or use docker-compose:

docker-compose up

The bot will be available at http://localhost.

You can also deploy directly to Heroku:

Deploy

Setup

You need to add a webhook pointing to this bot, use application/json as the Content Type, and select the Pull request event. Make sure to set a secret, and keep note of it, you will need to add it to your .env file.

Development

Since this bot depends on Github webhooks, we gonna need to use ngrok to redirect the webhook request to our machine.

Run:

./ngrok http $PORT

Where $PORT is the port you are going to run the bot.

Grab the *.ngrok.io URL and add it as webhook on your repo.

How it looks like

Syntax Errors

demo-1

Breaking Changes

demo-2

graphql-vigilant-bot's People

Contributors

jcmais avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

graphql-vigilant-bot's Issues

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.