DEV Community

Cover image for Don't Leave Comments on Pull Requests - Leave Pictures

Don't Leave Comments on Pull Requests - Leave Pictures

Adam Nathaniel Davis on March 06, 2021

A picture says a thousand words, right? Whenever you're reviewing pull requests (or reviewing code in any other context), you may find yourself wr...
Collapse
 
merri profile image
Vesa Piittinen

The best PR is GDPR.

GDPR cookie

Have a cookie.

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

There ya go!!! 😉

Collapse
 
thorstenhirsch profile image
Thorsten Hirsch

Steven Seagal always has the same facial expression

I'm not good at this.

Collapse
 
myleftshoe profile image
myleftshoe

Like the author said - a picture tells a thousand words!

Collapse
 
ben profile image
Ben Halpern

omg

Collapse
 
dvddpl profile image
Davide de Paolis

Absolutely golden. I have sooo many of these facial expressions while reviewing... But then waste time trying to articulate them in polite comments Should really switch to images

Collapse
 
kj2whe profile image
Jason

Admit it, you just wanted to test out the camera on you new phone?!

I see what you did there!

:D

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

You're not that far off! I've been doing a new YouTube channel and I have loads of stupid footage of myself taken with my new Canon M50 as I test lighting / lens / etc.

Collapse
 
myleftshoe profile image
myleftshoe

Thanks for not using emojis

Collapse
 
dynamicsquid profile image
DynamicSquid

This is golden

Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

I love this
Also how about we leave memes as well ;)

GitHub logo Bhupesh-V / memer-action

A GitHub Action for Programmer Memes xD

Memer Action

memer-action-logo

Github marketplace GitHub release (latest by date) Lint Integration Test Twitter: Bhupesh Varshney

✨ Demo

demomemer

❓ Usage

Example workflow

  • You can use the following workflow as it is, just copy/paste in a file named greetings.yml inside your workflows folder.
  • The reply action is performed by create-or-update-comment
name: Memer Workflow
on: [pull_request]
jobs
  greeting:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Run Memer Action
        id: memer

        uses: Bhupesh-V/memer-action@master
        with:
          filter: "new"

      - name: Check Outputs
        run: |
          echo "${{ steps.memer.outputs.meme }}"
          echo "${{ steps.memer.outputs.title }}"
          echo "${{ steps.memer.outputs.source }}"

      - name: Create comment
        uses: peter-evans/create-or-update-comment@v1.3.0
        id: couc
        with:
          issue-number: ${{ github.event.number }}
          body: |
            🎉🎉 Thanks for opening this PR/Issue 🤗
            Please wait while the maintainer(s) review it

            Meanwhile have a look at this 😝 :

            > **${{ steps.memer.outputs.title }}**
            ![meme](${{ steps.memer.outputs.meme }})
            <sub>ℹī¸ <a href="${{ steps.memer.outputs.source }}">Source</a> [
â€Ļ
Enter fullscreen mode Exit fullscreen mode