A GitHub
App built with ProbotAction that automatically creates gh-polls in GitHub issues.
Thanks to probot/actions-adapter
, this cool GitHub Polls Bot project can now be used as a GitHub Action! 🤩
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
/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 | ![]() |
- ⇄ 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
).