A GitHub App built with Probot that automatically creates gh-polls in GitHub issues.
/polls Option1 'Option 2' "Option 3"
# Automatically replace with the following markdown =>
[](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option1/vote)
[](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option%202/vote)
[](https://api.gh-polls.com/poll/01BY7ECS60GG8F9AR1VMR8745S/Option%203/vote)
Screenshot | ![]() |
---|---|
Demo | ![]() |
.env
file from .env.example
.private-key.pem
from GitHub and move it to your project’s directory.Note: Please follow the Developing an App section of Probot documents.
$ git clone https://github.com/evenchange4/gh-polls-bot
$ yarn install --pure-lockfile
$ yarn run dev # dev server
$ yarn start # prod server
$ yarn run format
$ yarn run eslint
$ yarn run test:watch
$ yarn run flow
$ yarn run flow-coverage
Any git commits push to master branch.
$ npm version patch
$ yarn run changelog
Note: PRIVATE_KEY pem workaround: first-timers-bot #89
$ yarn run test
).