Skip to content
phone

GitHub Action

GitHub Polls Bot Action

v2.0.2 Latest version

GitHub Polls Bot Action

phone

GitHub Polls Bot Action

GitHub Action that automatically creates polls in GitHub issues

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Polls Bot Action

uses: imjohnbo/gh-polls-bot-action@v2.0.2

Learn more about this action in imjohnbo/gh-polls-bot-action

Choose a version

GitHub Polls Bot Action

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

🧪 Experimental 🧪

Thanks to probot/actions-adapter, this cool GitHub Polls Bot project can now be used as a GitHub Action! 🤩

Usage

Example workflow

name: GitHub Polls Actions Bot

on:
  issue_comment:
    types: [created, edited] # issue comment is created or edited
  issues:
    types: [opened, edited] # issue is opened or edited

jobs:
  polls:
    runs-on: ubuntu-latest
    steps:
    - uses: imjohnbo/gh-polls-bot-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # created for you automatically; https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#github_token-secret

Command in issue body or comment

/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

Inspiration

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