Giter Club home page Giter Club logo

gh-polls-bot's Introduction

GitHub Polls Bot

A GitHub App built with Probot that automatically creates gh-polls in GitHub issues.

Travis Codecov Status Dependency Status devDependency Status peerDependency Status Greenkeeper badge prettier license

Usage

  1. Configure the GitHub App: github.com/apps/polls
  2. Add command to issue:
/polls Option1 'Option 2' "Option 3"

# Automatically replace with the following markdown =>
[![](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option1)](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option1/vote)
[![](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option%202)](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option%202/vote)
[![](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option%203)](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option%203/vote)
Screenshot
Demo

Developer Guide

Environments

  • Create a .env file from .env.example.
  • Download the private-key.pem from GitHub and move it to your project’s directory.

Note: Please follow the Developing an App section of Probot documents.

Requirements

  • node >= 9.0.0
  • yarn >= 1.3.2
$ git clone https://github.com/evenchange4/gh-polls-bot
$ yarn install --pure-lockfile

$ yarn run dev # dev server
$ yarn start   # prod server

Test

$ yarn run format
$ yarn run eslint
$ yarn run test:watch
$ yarn run flow
$ yarn run flow-coverage

Deploy to Now.sh

Any git commits push to master branch.

$ npm version patch
$ yarn run changelog

Note: PRIVATE_KEY pem workaround: first-timers-bot #89

Technology Stacks

Inspiration

Misc

CONTRIBUTING

  • ⇄ Pull requests and ★ Stars are always welcome.
  • For bugs and feature requests, please create an issue.
  • Pull requests must be accompanied by passing automated tests ($ yarn run test).

MIT: http://michaelhsu.mit-license.org

gh-polls-bot's People

Contributors

bukinoshita avatar evenchange4 avatar tj 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  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

gh-polls-bot's Issues

not all polls options show

Hi, this is spectacularly easy to use!

I created a poll here but the last entry does not show. Are there special characters that I cannot have? Just a Chrome problem?

Thanks!

Closing polls

Is there any way to close a poll so that it cannot receive anymore votes but the current state remains?

We have finished the polling period and have taken the voted for option and the issues have been closed, but ideally the polls should remember what the state was and not allow anymore changes.

Multiple choice polls for voting

Hi

Thanks for this app, but would it be feasible to add multiple choice feature (for voting).

I am trying to improve UX by adding users possibility to vote for multiple packages that need to be bound:

xamarin/AndroidX#566

feature list (suggestion):

  • options (multiple choice)
  • current count

Customize polls label

I would like to customize the label name used. Is there a .github/gh-polls-bot.yml config file?

Test

/polls foo bar baz

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.