GithubHelp home page GithubHelp logo

mohan-13 / issue-closed-notification-action Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 23 KB

Action that can be used to post random celebration messages to Discord channel through Webhooks.

License: GNU General Public License v3.0

Dockerfile 4.76% Python 95.24%

issue-closed-notification-action's Introduction

Issue Closed Notification Github Action

This action can be used to post a celebration message to discord channels when an issue is closed. The messages are randomly generated from MessageTemplates

Usage

This action requires a discord webhook to be created. For reference on creating webhooks please have a look here.

After creating the webhook, copy the URL and set it as a secret in repository settings.

Example

name: Issue Closed Notification

# This workflow runs whenever an issue is closed
on:
  issues:
    types: ["closed"]

jobs:
  post-message:
    name: Post Celebration Message
    runs-on : ubuntu-latest
    steps:
      - name: Post message
        uses: mohan-13/[email protected]
        with:
          discord-webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}

Extending Template Messages

When you want more customised messages, please fork this repo and add your templates to issue_closed_notification/MessageTemplates.py. When you want to use your fork, make sure to update uses line in your workflow with your username.

issue-closed-notification-action's People

Contributors

mohan-13 avatar

Watchers

 avatar  avatar

Forkers

isp829

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.