Pull Requests need more cute animals

circa10a

Caleb Lemoine

Posted on November 9, 2021

Pull Requests need more cute animals

My Workflow

I created a new GitHub action called animal-action

When a pull request is opened to a repository, it will comment with a cute picture of either a cat, dog, or fox!

The types of animals and comment supplied are completely configurable.

Current animals supported:

  • cats 🐈
  • dogs 🐕
  • foxes 🦊

Example

alt text

Submission Category:

  • Wacky Wildcards

Yaml File or Link to Code

GitHub logo circa10a / animal-action

A github action to add smiles to pull requests

animal-action

Build Status GitHub release (latest by date)

A github action to add smiles to pull requests

alt text

Inputs

github_token

Required A GitHub token

animals

A comma-delimated string of types of animals pictures to comment with.

Default: "cats,dogs,foxes".

pull_request_comment

Comment to post along with animal picture.

Default: ':tada: Thank you for your contribution! While we review, please enjoy this cute animal picture'.

Outputs

None

Example usage

name: comment
on:
  pull_request:
    types: [opened]
jobs:
  comment:
    runs-on: ubuntu-latest
    steps:
      - uses: circa10a/animal-action@main
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          animals: 'cats,dogs' # cats,dogs,foxes currently supported
          pull_request_comment: '🎉 Thank you for the contribution! Here's a cute animal picture to say thank you!'
Enter fullscreen mode Exit fullscreen mode



Additional Resources / Info

Why?

More smiles in Open Source is a definite win. 😄

💖 💪 🙅 🚩
circa10a
Caleb Lemoine

Posted on November 9, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

More Willpower to Developers
actionshackathon21 More Willpower to Developers

November 24, 2021

Greetings For You!
actionshackathon21 Greetings For You!

December 5, 2021

Deploy a React app to netlify using GitHub Actions
actionshackathon21 Deploy a React app to netlify using GitHub Actions

December 3, 2021

Pull Requests need more cute animals
actionshackathon21 Pull Requests need more cute animals

November 9, 2021