MCPcopy Index your code
hub / github.com/Bhupesh-V/memer-action

github.com/Bhupesh-V/memer-action @0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.0 ↗ · + Follow
2 symbols 9 edges 1 files 0 documented · 0% updated 4y ago0.3.0 · 2020-08-06★ 381 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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="https://github.com/Bhupesh-V/memer-action/raw/0.3.0/${{ steps.memer.outputs.source }}">Source</a> [ Powered By 🔥 <a href="https://github.com/Bhupesh-V/memer-action">Memer Action</a> ]</sub>

Inputs

Memer Action accepts following input variables.

  • filter (optional) : Sort Memes posts from reddit. Only 4 values are acceptable, hot, top, new & rising. By default the memes are "hot".
  • fallback (optional) : A JSON string for showing a Fallback meme, in case there are no memes available. By default the fallback output is
FALLBACK = {
    "meme_link": "https://raw.githubusercontent.com/Bhupesh-V/memer-action/master/images/header.png",
    "title": "Oops :( looks like we are out of memes.",
    "src": "https://github.com/Bhupesh-V/memer-action",
}
steps:
- uses: actions/checkout@master
- name: Run action
  id: myaction

  uses: Bhupesh-V/memer-action@master
  with:
    filter: new
    fallback: '{"meme_link":"<meme-url>", "title": "<meme-title>", "src": "<meme-source-url>"}'

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

Outputs

Memer Action sets 3 outputs.

  • title: The title of the post on reddit
  • meme: The meme image link
  • source: The Source of the Meme (post on reddit)
steps:
- uses: actions/checkout@master
- name: Run action
  id: myaction

  uses: Bhupesh-V/memer-action@master

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

Note: This action does not work in pull_request workflows when triggered by a fork opening a pull request in the upstream repository. This is due to restrictions put in place by GitHub Actions. See here for further explanation.

Author

👤 Bhupesh Varshney

💙 Credits

☺️ Show your support

Support me by giving a ⭐️ if this project helped you! or just Twitter URL

Donate using Liberapay

📝 License

Copyright © 2020 Bhupesh Varshney.

This project is MIT licensed.

Core symbols most depended-on inside this repo

Shape

Function 2

Languages

Python100%

Modules by API surface

main.py2 symbols

For agents

$ claude mcp add memer-action \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page