Giter VIP home page Giter VIP logo

bot's Introduction

react-navigation-bot

CircleCI

A GitHub App built with probot that helps maintain the react-navigation repo.

Setup

localtunnel is recommended to run this bot locally. Register a new GitHub App and set the homepage URL to https://example.com (or anything for development), set the Webhook URL to your localtunnel URL, and add a webhook secret called development. Create a new GitHub repo and add the App to the repo. Add the localtunnel URL as a Webhook URL to the repo.

Create a .env file in the root directory with the following:

APP_ID=1000 # your app ID
WEBHOOK_SECRET=development # or your secret

# Uncomment this to get verbose logging
# LOG_LEVEL=trace # or `info` to show less

Run the bot.

# Install dependencies
npm install

# Run the bot
npm start

See the official Probot documentation for more.

Features

This bot auto-responds to the following:

  1. Issue Label Status: Needs More Info
  2. Issue Label Type: Question

bot's People

Contributors

matthamil avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

isabella232

bot's Issues

[RFC] [WIP] Wishlist of behaviours for the bot

I'm using this issue to list all the different behaviours I wish this bot would have.

Overall idea

Basically, the purpose of this bot would be to help out in keeping the issues & PRs sections of react-navigation "clean".

My definition of clean basically means that every open issue is:

  • a bug that needs a code fix
  • a modification the documentation needs
  • a feature that multiple people (+1 at least one "good rep dev") think it's useful

List of behaviours

  • Reply to (new) question tagged issues

When a new issue gets tagged with as question, the bot should close it and reply with:

Hi @(user)! It looks like this is not a bug of the library nor a feature request, so I'll close it: I suggest next time you use [Stack Overflow](https://stackoverflow.com/search?q=react-navigation) which is better suited for answering these types of questions. I also encourage you to join the [Reactiflux](https://www.reactiflux.com/) community on Discord. There are React Native and React Navigation channels with helpful people who might be able to answer your question. I would also like to mention that there is a collection of helpful links and tutorials for React Navigation in the [README](https://github.com/react-community/react-navigation#community-contributions) which might be helpful for you.

If you believe that you are experiencing a bug or have a feature request, please open a new Issue following the dedicated template or submit a PR.

Currently after the first paragraph I add a second with some extra info to point the user in the right direction (ex. if the question is about the Drawer I link them to the README section with the Drawer article series by Gant ) but the bot surely won't be able to. #goodenough

  • Autoclose issues that don't follow any template

When a user create an issue that doesn't follow the template, it should close it right away saying something along these lines:

Closing because you haven't followed the issue template; please open a new one that follows the template.
Without that, it's nearly impossible to understand & investigate the issue. I suggest you also try (in the new issue) to answer/explain in a way that fits these questions:

1. have you tried updating to the latest release?
1. does it happen only on Android/iOS?
1. does it happen on both Debug and Release modes?
1. does it happen with Debugger On or Off? Both?
1. Can you provide a GIF or a repo or a snack to reproduce this issue?

Maybe we should add an invalid tag that triggers this behaviour too?

Other notes

  • I want to play with the issue templates, since I joined the OSM I've already learned that we could create multiple templates. I'll write some more later on.

This is not the full list of behaviours yet, but I decided to start writing it anyway to not forget/delay this further.

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.