Code Monkey home page Code Monkey logo

discord-commits's Introduction

Discord Webhook

This GitHub Action can produce fancy and more meaningful Discord messages for your commits.

Setup

Setup this code on your repository's .github/workflows/ in a file like discord-push.yml and push the changes:

name: Discord Webhook
on: [push]
jobs:
  Discord_notification:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repository
      uses: actions/checkout@v3
    - name: Run Discord Webhook
      uses: Mist3r-Robot/classic-discord-webhook@main
      with:
        id: ${{ secrets.DISCORD_WEBHOOK_ID }}
        token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
        threadId: ${{ secrets.DISCORD_WEBHOOK_THREAD_ID }}

You can see the example file at /.github/workflows/discord-push.yml

Inputs

in your Settings > Security > Secrets and variables > Actions > Secrets (/settings/secrets/actions) on GitHub, you need to add 2 secrets :

  • DISCORD_WEBHOOK_ID
  • DISCORD_WEBHOOK_TOKEN
DISCORD_WEBHOOK_ID DISCORD_WEBHOOK_TOKEN DISCORD_WEBHOOK_THREAD_ID
Required — This is the id of your Discord webhook, if you copy the webhook url, this will be the first part of it. Required — Your Discord webhook token, it's the second part of the url. Not required — if you want to send the message in a thread, you can specify the thread id here.

discord-commits's People

Contributors

chatdisabled avatar d4isdavid avatar dependabot[bot] avatar imgbotapp avatar renovate-bot avatar thebusybiscuit avatar thomasbnt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.