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 config…


This content originally appeared on DEV Community and was authored by Caleb Lemoine

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:"Thank you for your contribution. While we review, please enjoy this cute animal picture :cat:".

Outputs

None

Example usage

name: comment
on:
  pull_request:
    types: [opened]
jobs:
  comment:
    runs-on: ubuntu-latest
    steps:
      - uses: circa10a/animal-action@v1.0.0
        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!'



Additional Resources / Info

Why?

More smiles in Open Source is a definite win. 😄


This content originally appeared on DEV Community and was authored by Caleb Lemoine


Print Share Comment Cite Upload Translate Updates
APA

Caleb Lemoine | Sciencx (2021-11-09T04:14:43+00:00) Pull Requests need more cute animals. Retrieved from https://www.scien.cx/2021/11/09/pull-requests-need-more-cute-animals/

MLA
" » Pull Requests need more cute animals." Caleb Lemoine | Sciencx - Tuesday November 9, 2021, https://www.scien.cx/2021/11/09/pull-requests-need-more-cute-animals/
HARVARD
Caleb Lemoine | Sciencx Tuesday November 9, 2021 » Pull Requests need more cute animals., viewed ,<https://www.scien.cx/2021/11/09/pull-requests-need-more-cute-animals/>
VANCOUVER
Caleb Lemoine | Sciencx - » Pull Requests need more cute animals. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/09/pull-requests-need-more-cute-animals/
CHICAGO
" » Pull Requests need more cute animals." Caleb Lemoine | Sciencx - Accessed . https://www.scien.cx/2021/11/09/pull-requests-need-more-cute-animals/
IEEE
" » Pull Requests need more cute animals." Caleb Lemoine | Sciencx [Online]. Available: https://www.scien.cx/2021/11/09/pull-requests-need-more-cute-animals/. [Accessed: ]
rf:citation
» Pull Requests need more cute animals | Caleb Lemoine | Sciencx | https://www.scien.cx/2021/11/09/pull-requests-need-more-cute-animals/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.