Giter VIP home page Giter VIP logo

greets-action's Introduction

Greets Action

What is Greets Action?

Greets Action is an automated action to send messages and add labels to events

How it works?

The Greets Action can greet when someone opens or closed an issue or pull request.
you can also manage any events using on:

How to use?

Create an action file in .github/workflows/name.yml. Here the word name can be anything.

name: Greets Action

on:
  issues:
    types: [closed]
  pull_request:
    types: [closed]

jobs:
  greeting:
    runs-on: ubuntu-latest
    steps:
      - uses: Manoj-Paramsetti/greets-action@main
        if: ${{ github.event.pull_request.merged == true }}
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          # here issue_message is not given since the condition checks for the merge is true. it will
          # does not pass the checks in issue
          PR_message: 'add a message over here for the pull request'
           
      - uses: Manoj-Paramsetti/greets-action@main
        if: ${{ github.event.pull_request.merged == false}}
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          issue_message: 'add message over here for issue'
          pr_message: 'add message over here for pull request'
          # labels is not a required key. you can use it when you want to add labels. it supports
          # upto 4 labels
          label_1: 'label 1'
          label_2: 'label 2'
          label_3: 'label 3'
          label_4: 'label 4' 
          

You can also pass labels in list type but you can't send list type directly. Use the list concept surrounded with quotes and inside that list should be passed. You can also add labels more than 4

name: Greets Action

on:
  issues:
    types: [closed]
  pull_request:
    types: [closed]

jobs:
  greeting:
    runs-on: ubuntu-latest
    steps:
      - uses: Manoj-Paramsetti/greets-action@main
        if: ${{ github.event.pull_request.merged == true }}
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          # here issue_message is not given since the condition checks for the merge is true. it will
          # does not pass the checks in issue
          PR_message: 'add a message over here for the pull request'
           
      - uses: Manoj-Paramsetti/greets-action@main
        if: ${{ github.event.pull_request.merged == false}}
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          issue_message: 'add message over here for issue'
          pr_message: 'add message over here for pull request'
          # labels is not a required key. you can use it when you want to add labels. it supports
          # more than 4 labels
          labels: '["label_1", "label_2", "label_3"]' 
          

greets-action's People

Contributors

manoj-paramsetti avatar

Stargazers

 avatar  avatar  avatar

Forkers

homomorfism

greets-action's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.