Skip to content
heart

GitHub Action

Mast Joke Mara

v1.3.0 Latest version

Mast Joke Mara

heart

Mast Joke Mara

Greet with random jokes on new Issue or PR

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Mast Joke Mara

uses: deep5050/[email protected]

Learn more about this action in deep5050/MastJokeMara

Choose a version


Logo

MAST JOKE MARA

A GitHub workflow to greet with a random joke on a new isssue or Pull Request :)


See it on Marketplace »
View Demo · Report Bug · Request Feature

Table of Contents

About The Project

This workflow comments on a new issue or pull request by a lovely greeting and with a complimentary joke. For now it supports only programming jokes only, It will supports more jokes soon.

On new Issues

Issue demo

On new Pull Requests

PR

Built With

Getting Started

Any public or private repository can run this workflow by copying greet_with_joke.yml file to their .github/workflows directory.

Usage

Default configuration

name: "Greet With A Random Joke"
on:
  issues:
    types: [opened, reopened]
  pull_request:
    types: [opened, reopened]

jobs:
  test:
    name: setup environment
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: mast joke mara
        uses: deep5050/MastJokeMara@main
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Custom configuration [NEW]

name: "Greet With A Random Joke"
on:
  issues:
    types: [opened, reopened]
  pull_request:
    types: [opened, reopened]

jobs:
  test:
    name: setup environment
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: mast joke mara
        uses: deep5050/MastJokeMara@qikpatch
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          issue_msg: |
            (ISSUE) Hi, {{author}} here is a joke for you 
            {{joke}}
          
          PR_msg: |
            (PR) Hi, {{author}} here is a joke for you 
            {{joke}}

When using Custom configuration DO NOT forget to include {{author}} and {{joke}}

Roadmap

See the open issues for a list of proposed features (and known issues).

Version History

v1.3.0 [Custom message support] Added support for custom Issue and PR messages

v1.2.0 [Avoid issues raised by bot or owner] : Avoids issues/PRs raised by a bot or the owner himself. Also run only on issue or Pull Request opened and reopened events.

v1.1.0 [Avoid bots] : Avoids replying to the bot comments

v1.0.0 [Initial release] : Supports programming jokes

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Test by raising an issue or a PR on your own branch
  6. Open a Pull Request

DO NOT make any changes to dist/index.js as it is automgically generated from index.js by vercel-ncc module.

Any changes made on index.js MUST be reflected on dist/index.js too as the workflow runs the dist/index.js NOT index.js on root.

Run npm run prepare before you push any changes made on index.js

Support

All Kinds Of Supports Are Welcome 🙌! The Most Basic Way To Show Your Support Is To Star 🌟 The Project, Or To Raise Issues 💬 You Can Also Support This Project By becoming a sponsor on GitHub 👏 Or By Making A Paypal Donation :)

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Dipankar Pal - [email protected]

Related Works

NaughtyLust : Awesome Nautilus Scripts For Linux.

qikQR : Minimal QR Code Generator App Made With Electron.

cppcheck-action : Check Security Flaws In Your C/C++ Codes Right From GitHub Action Workflows.

autopy-lot : GitHub Action Setup To Convert Jupyter Notebooks To Python Scripts And Markdowns.

unicorn

Happy Coding

Visitors