ValeriaVG / actions-magic-8-ball

Get Magic ball answers delivered directly to your comments
MIT License
0 stars 0 forks source link

GitHub Actions: Magic Eight Ball comments

Get Magic ball answers delivered directly to your comments.

How to use

Create an action in .github/workflows:

on:
  issue_comment:
    types: [created]
jobs:
  example_comment_pr:
    runs-on: ubuntu-latest
    name: Magic Eight Ball Comments
    permissions:
        pull-requests: write
        issues: write
    steps:
      - name: Answer
        uses: ValeriaVG/actions-magic-8-ball@v1

Post a comment in PR or and issue starting with "🎱" and get a prediction:

Example response: "🎱 Should I add tests to this repo? - Signs point to a nap first."

With custom prefix

You can also change the prefix to a custom one:

on:
  issue_comment:
    types: [created]
jobs:
  example_comment_pr:
    runs-on: ubuntu-latest
    name: Magic Eight Ball Comments
    permissions:
        pull-requests: write
        issues: write
    steps:
      - name: Answer
        uses: ValeriaVG/actions-magic-8-ball@v1
        with:
          prefix: 'Magic ball, would you please'

Credits

Responses have been generated with Free Research Preview ChatGPT

Can you generate 10 chaotic funny eight ball responses (in json array, of course)?