Skip to content
Automatically create polls in GitHub issues.
JavaScript Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
flow-typed/npm test: add flowtype (#3) Nov 2, 2017
src fix(getCommand): update regular expression to check command carefully ( Nov 7, 2017
tasks docs(README): use MIT license (+9 squashed commits) Nov 2, 2017
.editorconfig docs(README): use MIT license (+9 squashed commits) Nov 2, 2017
.env.example docs(README): use MIT license (+9 squashed commits) Nov 2, 2017
.eslintignore test(flow): add flow-coverage (#9) Nov 3, 2017
.flowconfig test(flow): add flow-coverage (#9) Nov 3, 2017
.gitignore test(flow): add flow-coverage (#9) Nov 3, 2017
.travis.yml fix(addLabel): update Label type & add some integration test (#10) Nov 4, 2017
CHANGELOG.md docs(CHANGELOG): release 1.0.3 Nov 7, 2017
CODE_OF_CONDUCT.md create-probot-app init Nov 1, 2017
CONTRIBUTING.md create-probot-app init Nov 1, 2017
LICENSE docs(README): use MIT license (+9 squashed commits) Nov 2, 2017
README.md docs(README): add `gh-polls` (js) (#15) Nov 9, 2017
package.json 1.0.3 Nov 7, 2017
yarn.lock test(flow): add flow-coverage (#9) Nov 3, 2017

README.md

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).

CHANGELOG

LICENSE

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

You can’t perform that action at this time.