Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automatically create polls in GitHub issues.

License

NotificationsYou must be signed in to change notification settings

evenchange4/gh-polls-bot

GitHub Polls Bot

A GitHub App built withProbot that automatically createsgh-polls in GitHub issues.

TravisCodecov StatusDependency StatusdevDependency StatuspeerDependency StatusGreenkeeper badgeprettierlicense

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 theprivate-key.pem from GitHub and move it to your project’s directory.

Note: Please follow theDeveloping 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

About

Automatically create polls in GitHub issues.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp