Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.11 KB

File metadata and controls

35 lines (26 loc) · 1.11 KB

Notify Discord on New Issue GitHub Action

This action can be used to post a notification message to Discord channels whenever a new issue is opened.
The message includes an embed with the issue title, URL, and body, and can optionally mention specific users or roles.

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 your repository settings.

If you want to be mentioned on Discord, simply provide user or role IDs as comma‑separated values in the configuration.

Example

name: Notify Discord on new Issue

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

jobs:
  notify:
    name: Send Discord Notification
    runs-on: ubuntu-latest
    steps:
      - name: Notify Discord
        uses: Tungdil83/discord-issue-notify@v1.0.0
        with:
          webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
          mention_users: ""
          mention_roles: ""