{"id":16972409,"url":"https://github.com/bhupesh-v/memer-action","last_synced_at":"2025-03-22T14:31:29.497Z","repository":{"id":65157479,"uuid":"254587849","full_name":"Bhupesh-V/memer-action","owner":"Bhupesh-V","description":"A GitHub Action for Programmer Memes xD","archived":false,"fork":false,"pushed_at":"2021-12-06T05:08:14.000Z","size":106,"stargazers_count":37,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T12:02:16.457Z","etag":null,"topics":["actions","dank-memer","dankmemes","fun","hacktoberfest","meme","memer","memer-action","memes","memes4life","programmerhumor","project-management","pull-requests","reddit","utilities","workflows"],"latest_commit_sha":null,"homepage":"https://bhupesh.me/memer-action-github-action-for-programmer-memes/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bhupesh-V.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"open_collective":null,"ko_fi":"bhupesh","tidelift":null,"community_bridge":null,"issuehunt":null,"otechie":null,"custom":"https://paypal.me/BhupeshVarshney"}},"created_at":"2020-04-10T08:50:13.000Z","updated_at":"2024-12-10T22:31:51.000Z","dependencies_parsed_at":"2023-01-12T14:31:07.119Z","dependency_job_id":null,"html_url":"https://github.com/Bhupesh-V/memer-action","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":0.04347826086956519,"last_synced_commit":"44c4349aec750197d2ee18e98a926ef236d4f4c2"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"jacobtomlinson/python-container-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhupesh-V%2Fmemer-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhupesh-V%2Fmemer-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhupesh-V%2Fmemer-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhupesh-V%2Fmemer-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bhupesh-V","download_url":"https://codeload.github.com/Bhupesh-V/memer-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244972003,"owners_count":20540906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","dank-memer","dankmemes","fun","hacktoberfest","meme","memer","memer-action","memes","memes4life","programmerhumor","project-management","pull-requests","reddit","utilities","workflows"],"created_at":"2024-10-14T00:59:12.150Z","updated_at":"2025-03-22T14:31:29.257Z","avatar_url":"https://github.com/Bhupesh-V.png","language":"Python","funding_links":["https://ko-fi.com/bhupesh","https://paypal.me/BhupeshVarshney"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003eMemer Action\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n  \u003ca href=\"\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/Bhupesh-V/memer-action/master/images/header.png?token=AIGANF6ODRJK3Z2FQ5BKO6K6TLD2O\" alt=\"memer-action-logo\" height=\"160\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n[![Github marketplace](https://img.shields.io/badge/Marketplace-Memer%20Action-blue.svg?colorA=24292e\u0026colorB=0366d6\u0026style=flat\u0026longCache=true\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=)](https://github.com/marketplace/actions/memer-action)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/bhupesh-v/memer-action?logo=GitHub)](https://github.com/Bhupesh-V/memer-action/releases) \n[![Lint](https://github.com/Bhupesh-V/memer-action/workflows/Lint/badge.svg?branch=master)](https://github.com/Bhupesh-V/memer-action/actions?query=workflow%3ALint)\n[![Integration Test](https://github.com/Bhupesh-V/memer-action/workflows/Integration%20Test/badge.svg?branch=master)](https://github.com/Bhupesh-V/memer-action/actions?query=workflow%3A%22Integration+Test%22)\n\u003ca href=\"https://twitter.com/bhupeshimself\"\u003e\n  \u003cimg alt=\"Twitter: Bhupesh Varshney\" src=\"https://img.shields.io/twitter/follow/bhupeshimself.svg?style=social\" target=\"_blank\" /\u003e\n\u003c/a\u003e\n\n## ✨ Demo\n\n![demomemer](https://user-images.githubusercontent.com/34342551/79064573-a6fa9e80-7cc7-11ea-895e-6538c2b8548b.png)\n\n## ❓ Usage\n\n### Example workflow\n\n- You can use the following workflow as it is, just copy/paste in a file named `greetings.yml` inside your [workflows](https://github.com/Bhupesh-V/memer-action/tree/master/.github/workflows) folder.\n- The reply action is performed by [create-or-update-comment](https://github.com/peter-evans/create-or-update-comment)\n\n```yaml\nname: Memer Workflow\n\non: [pull_request]\n\njobs:\n  greeting:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - name: Run Memer Action\n        id: memer\n\n        uses: Bhupesh-V/memer-action@master\n        with:\n          filter: \"new\"\n\n      - name: Check Outputs\n        run: |\n          echo \"${{ steps.memer.outputs.meme }}\"\n          echo \"${{ steps.memer.outputs.title }}\"\n          echo \"${{ steps.memer.outputs.source }}\"\n\n      - name: Create comment\n        uses: peter-evans/create-or-update-comment@v1.3.0\n        id: couc\n        with:\n          issue-number: ${{ github.event.number }}\n          body: |\n            🎉🎉 Thanks for opening this PR/Issue 🤗\n            Please wait while the maintainer(s) review it\n\n            Meanwhile have a look at this 😝 :\n\n            \u003e **${{ steps.memer.outputs.title }}**\n            ![meme](${{ steps.memer.outputs.meme }})\n            \u003csub\u003eℹ️ \u003ca href=\"${{ steps.memer.outputs.source }}\"\u003eSource\u003c/a\u003e [ Powered By 🔥 \u003ca href=\"https://github.com/Bhupesh-V/memer-action\"\u003eMemer Action\u003c/a\u003e ]\u003c/sub\u003e\n\n```\n\n### Inputs\n\nMemer Action accepts following input variables.\n\n- `filter` (optional) : Sort Memes posts from reddit. Only 4 values are acceptable, **hot**, **top**, **new** \u0026 **rising**. By default the memes are \"hot\".\n- `fallback` (optional) : A JSON string for showing a Fallback meme, in case there are no memes available. By default the fallback output is\n```python\nFALLBACK = {\n    \"meme_link\": \"https://raw.githubusercontent.com/Bhupesh-V/memer-action/master/images/header.png\",\n    \"title\": \"Oops :( looks like we are out of memes.\",\n    \"src\": \"https://github.com/Bhupesh-V/memer-action\",\n}\n```\n\n```yaml\nsteps:\n- uses: actions/checkout@master\n- name: Run action\n  id: myaction\n\n  uses: Bhupesh-V/memer-action@master\n  with:\n    filter: new\n    fallback: '{\"meme_link\":\"\u003cmeme-url\u003e\", \"title\": \"\u003cmeme-title\u003e\", \"src\": \"\u003cmeme-source-url\u003e\"}'\n\n- name: Check outputs\n    run: |\n    echo \"Outputs - ${{ steps.myaction.outputs.title }}\"\n    echo \"Outputs - ${{ steps.myaction.outputs.meme }}\"\n    echo \"Outputs - ${{ steps.myaction.outputs.source }}\"\n```\n\n### Outputs\n\nMemer Action sets 3 outputs.\n\n- `title`: The title of the post on reddit\n- `meme`: The meme image link\n- `source`: The Source of the Meme (post on reddit)\n\n```yaml\nsteps:\n- uses: actions/checkout@master\n- name: Run action\n  id: myaction\n\n  uses: Bhupesh-V/memer-action@master\n\n- name: Check outputs\n    run: |\n    echo \"Outputs - ${{ steps.myaction.outputs.title }}\"\n    echo \"Outputs - ${{ steps.myaction.outputs.meme }}\"\n    echo \"Outputs - ${{ steps.myaction.outputs.source }}\"\n```\n\nNote: This action does not work in `pull_request` workflows when triggered by a fork opening a pull request in the upstream repository.\nThis is due to restrictions put in place by GitHub Actions. See [here](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#restrictions-on-forked-repositories) for further explanation.\n\n## 💙 Credits\n- [create-or-update-comment](https://github.com/peter-evans/create-or-update-comment)\n- [python-container-action](https://github.com/jacobtomlinson/python-container-action)\n\n## ☺️ Show your support\n\nSupport me by giving a ⭐️ if this project helped you! or just [![Twitter URL](https://img.shields.io/twitter/url?label=Tweet%20Memer%20Action\u0026logoColor=blue\u0026style=social\u0026url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Furl%3Dhttps%3A%2F%2Fgithub.com%2FBhupesh-V%2Fmemer-action%26text%3DA%2520GitHub%2520Action%2520for%2520programmer%2520memes%2520%3B%29)](https://twitter.com/intent/tweet?url=https://github.com/Bhupesh-V/memer-action\u0026text=A%20GitHub%20Action%20for%20programmer%20memes)\n\n## 📝 License\n\nCopyright © 2020 [Bhupesh Varshney](https://github.com/Bhupesh-V).\u003cbr /\u003e\nThis project is [MIT](https://github.com/Bhupesh-V/memer-action/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhupesh-v%2Fmemer-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhupesh-v%2Fmemer-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhupesh-v%2Fmemer-action/lists"}