├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── ----bug-report.md │ ├── ---feature-request.md │ └── ---say-thank-you.md ├── PULL_REQUEST_TEMPLATE │ └── pull_request_template.md └── workflows │ ├── greetings.yml │ ├── integration.yml │ └── python.yml ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── action.yml ├── images └── header.png └── main.py /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | open_collective: # Replace with a single Open Collective username 5 | ko_fi: bhupesh 6 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 7 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 8 | issuehunt: # Replace with a single IssueHunt username 9 | otechie: # Replace with a single Otechie username 10 | custom: https://paypal.me/BhupeshVarshney 11 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/----bug-report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F41B Bug report" 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: 'bug' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. Ubuntu] 28 | - Python Version [e.g. 3.8] 29 | - Memer Action Version [e.g. 0.2.0] 30 | 31 | **Additional context** 32 | Add any other context about the problem here. 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/---feature-request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F680 Feature request" 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: 'enhancement' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/---say-thank-you.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F49F Say thank you" 3 | about: Just say thanks if you liked memer-action 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | if you liked **memer-action** - please let us know. We'd love to hear from you! 11 | 12 | You can help me in any way possible 13 | 14 | - [ ] Give the repository a star ⭐️. 15 | - [ ] Help out with issues. 16 | - [ ] Share it with others. 17 | - [ ] Buy me a [ko-fi](https://ko-fi.com/bhupesh). 18 | 19 | Thank you! 💐 20 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Solved/Fixed : #issue-no 6 | 7 | > 8 | - 9 | - 10 | - 11 | 12 | 13 | 14 | - [] Did you read the `CONTRIBUTING` Guidelines before creating this PR ? 15 | -------------------------------------------------------------------------------- /.github/workflows/greetings.yml: -------------------------------------------------------------------------------- 1 | name: Memer Greetings 2 | 3 | on: [pull_request] 4 | 5 | jobs: 6 | greeting: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v2 10 | - name: Self test 11 | id: selftest 12 | 13 | uses: Bhupesh-V/memer-action@master 14 | with: 15 | filter: "new" 16 | 17 | - name: Check outputs 18 | run: | 19 | echo "${{ steps.selftest.outputs.meme }}" 20 | echo "${{ steps.selftest.outputs.title }}" 21 | echo "${{ steps.selftest.outputs.source }}" 22 | 23 | - name: Create comment 24 | uses: peter-evans/create-or-update-comment@v1.4.2 25 | id: couc 26 | with: 27 | issue-number: ${{ github.event.number }} 28 | body: | 29 | 🎉🎉 Thanks for opening this PR/Issue 🤗 30 | Please wait while the maintainer(s) review it 31 | 32 | Meanwhile have a look at this meme 😝 : 33 | 34 | > **${{ steps.selftest.outputs.title }}** 35 |  36 | ℹ️ Source [ Powered By 🔥 Memer Action ] 37 | -------------------------------------------------------------------------------- /.github/workflows/integration.yml: -------------------------------------------------------------------------------- 1 | name: Integration Test 2 | on: [push] 3 | jobs: 4 | build: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v2 8 | - name: Self test 9 | id: selftest 10 | 11 | uses: Bhupesh-V/memer-action@master 12 | with: 13 | filter: "new" 14 | 15 | - name: Check outputs 16 | run: | 17 | echo "${{ steps.selftest.outputs.meme }}" 18 | echo "${{ steps.selftest.outputs.title }}" 19 | echo "${{ steps.selftest.outputs.source }}" 20 | -------------------------------------------------------------------------------- /.github/workflows/python.yml: -------------------------------------------------------------------------------- 1 | name: Lint 2 | on: [push, pull_request] 3 | jobs: 4 | lint: 5 | name: Lint 6 | runs-on: ubuntu-latest 7 | steps: 8 | - name: Set up Python 3.8 9 | uses: actions/setup-python@v2 10 | with: 11 | python-version: "3.8" 12 | 13 | - uses: actions/checkout@v2 14 | 15 | - name: Lint 16 | run: | 17 | pip install black 18 | black --check --diff main.py 19 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Memer Action xD 2 | 3 | :tada: First of all, thanks for taking the time to contribute! :tada: 4 | 5 | Make sure you follow below guidelines before contributing. 6 | 7 | 1. Raise an issue before sending any PR (if the issue doesn't exist). 8 | 2. Make you changes to `feature` branch. 9 | 3. See if there is already an [open PR](https://github.com/Bhupesh-V/memer-action/pulls) for the same issue. 10 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3-slim AS builder 2 | ADD . /app 3 | WORKDIR /app 4 | 5 | # We are installing a dependency here directly into our app source dir 6 | RUN pip install --target=/app feedparser 7 | 8 | # A distroless container image with Python and some basics like SSL certificates 9 | # https://github.com/GoogleContainerTools/distroless 10 | FROM gcr.io/distroless/python3-debian10 11 | COPY --from=builder /app /app 12 | WORKDIR /app 13 | ENV PYTHONPATH /app 14 | CMD ["/app/main.py"] 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2020 GitHub, Inc. and contributors 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 |