• Stars
    star
    213
  • Rank 185,410 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Automatically create polls in GitHub issues.

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

More Repositories

1

graphql.macro

Compile GraphQL AST at build-time with babel-plugin-macros.
JavaScript
239
star
2

react-progressive-bg-image

πŸ–Ό Medium style progressive background image.
JavaScript
228
star
3

micro-medium-api

Microservice for fetching the latest posts of Medium with GraphQL.
JavaScript
141
star
4

react-intl-po

πŸš€ Extract POT from react-intl and convert back to json.
JavaScript
89
star
5

nextjs-pkg-docker-alpine

πŸ“₯Deploy a commercial Next.js application with pkg and docker.
JavaScript
74
star
6

react-intl-cra

πŸ”§ Extract messages of Creact React App from the command line.
JavaScript
67
star
7

react-grecaptcha

React.js Google reCAPTCHA v2 integration component.
JavaScript
51
star
8

svgr.macro

Run svgr at build-time with babel-plugin-macros.
JavaScript
43
star
9

react-intl-po-example

πŸ‘‰ This is a standalone project for using react-intl-po with CRA.
HTML
38
star
10

react-intl.macro

Extract react-intl messages with babel-plugin-macros.
JavaScript
37
star
11

micro-website-api

An API microservice that crawls dynamic website powered by puppeteer.
JavaScript
29
star
12

graphql.macro-example

JavaScript
23
star
13

todomvc-subscriptions

Fullstack TodoMVC with GraphQL subscriptions.
JavaScript
22
star
14

nextjs-tfjs-cnn

πŸ• 🐈 Classifier using Keras VGG16 transfer learning with kaggle dataset.
Jupyter Notebook
14
star
15

react-lifecycle-hoc

Higher-order components of react lifecycle. ✨
JavaScript
13
star
16

redux-csrf

Keep your csrf token inside your Redux store.
JavaScript
11
star
17

calendar-todo

πŸ“… Google calendar todo list application with GraphQL proxy
JavaScript
10
star
18

react-image-onload

React Image onLoad event.
JavaScript
10
star
19

react-input-files

Reusable React input file component.
JavaScript
9
star
20

michaelhsu.tw

evenchange4.github.io/michaelhsu.tw πŸ‘‰
JavaScript
8
star
21

dotenv.macro

Inline dotenv at build-time with babel-plugin-macros.
JavaScript
8
star
22

react-livescript-seed

DEPRECATED: Quick starter of React-Flux LiveScript Project seed.
LiveScript
7
star
23

ethereum-hot-wallet

A react-native hot wallet that communicates with geth node.
JavaScript
6
star
24

react-dnd-dropzone

Dropzone with render props built with react-dnd.
JavaScript
6
star
25

apollo-link-log

Log side effect for Apollo Link.
JavaScript
6
star
26

react-svg-drag-and-select

[WIP] A SVG playground to drag and select shape elements.
JavaScript
6
star
27

react-overlay-pack

Reusable components to build Tooltip, Popover and Dialog.
JavaScript
5
star
28

react-draggable-playground

Reusable React-draggable components with render props.
JavaScript
5
star
29

remark-utils

Reusable utils to build markdown service power by remarkjs and elasticlunr.
JavaScript
4
star
30

micro-github-latest

Microservice for downloading the latest asset of GitHub release.
JavaScript
4
star
31

react-ga-hoc

Send GA pageview safely with async data.
JavaScript
4
star
32

mrt_opendata

捷運站坐標
Ruby
3
star
33

michaelhsu

The Michael Hsu CLI
JavaScript
3
star
34

docker-tfjs-converter

Docker image for tfjs-converter
Dockerfile
3
star
35

react-intl.macro-example

JavaScript
2
star
36

svgr.macro-example

HTML
2
star
37

102-2_NLP_Project_Sentiment-Analysis

Aspect-based Sentiment Analysis
Ruby
2
star
38

to-object-by

Reduce an Array into Object for indexing purpose.
JavaScript
2
star
39

LAB_WSJ_crawler

Wall Street Journal crawler
JavaScript
1
star
40

102-1_SP_PA2_Multiplexing-Web-Server

Assignment 2 - Multiplexing Web Server
C
1
star
41

crna-expo

πŸ“± A react-native playground.
JavaScript
1
star
42

101-1_IR_PA2_-Cosine-Similarity

Ruby tf-idf Cosine-Similarity
Ruby
1
star
43

WebMining_PA2

WMPA2 PageRank + LexRank
C++
1
star
44

imagemin-simple

Replace images with minified one and generate small base64 image.
JavaScript
1
star
45

CCSP

[101-2] NTU cloud computing special project
R
1
star
46

cv

πŸ“Michael Hsu's CV
TeX
1
star
47

102-1_DS_PA2_ADT-Table

implementation of ADT Table by using STL map、list
C++
1
star
48

number-with-commas

Convert a Number to a string with commas.
JavaScript
1
star
49

to-percentage-by

Convert a Float number to percentage with rounding, ceiling or flooring.
JavaScript
1
star
50

cra-electron

πŸ‘¨πŸ»β€πŸ’» A electron playground with Create-React-App.
JavaScript
1
star
51

blog

CSS
1
star
52

ng-alert

AngularJS component for easily creating Alert.
CSS
1
star
53

hsu-scripts

CLI toolbox for common scripts for npm libraries.
JavaScript
1
star
54

lint-config-m

Lint config with eslint and stylelint.
JavaScript
1
star
55

gulp-livereload

Gulp.js + LiveReload with node.js http-server
JavaScript
1
star