Git Product home page Git Product logo

send-discord-webhook-ghaction's Introduction


💬 Languages

  • Cantonese (粵語 / 廣東話)
  • Chinese (Traditional) (漢語(正體))
  • English

🧑‍💻 Programming Languages

CSS 3 Deno HTML 5 JavaScript NodeJS PowerShell Python TypeScript

📦 Registries

GitHub Packages: @hugoalh GitHub Packages: @hugoalh-studio JSR: @hugoalh NPM: @hugoalh PowerShell Gallery: @hugoalh Visual Studio Marketplace: @hugoalh

🗄️ Repositories

Codeberg: @hugoalh GitHub: @hugoalh GitHub: @hugoalh-studio KaKi87 Git: @hugoalh

📚 Resources

👥 Socials

Bluesky: @hugoalh.bsky.social Discord: @hugoalh Gab: @hugoalh Gravatar: @hugoalh Guilded: /u/hugoalh Imgur: @hugoalh LINE: @hugoalh Mastodon: @hugoalh@mastodon.social Reddit: /u/hugoalh Revolt Chat: @hugoalh#5145 Roblox: @hugoalh SoundCloud: @hugoalh Spotify: @hugoalh Steam: @hugoalh Telegram: @hugoalh Tumblr: @hugoalh Twitch: @hugoalh Vivaldi Social: @hugoalh X: @hugoalhofficial YouTube: @hugoalh

🦜 Translation Platforms

Codeberg Translate: @hugoalh Crowdin: @hugoalh Transifex: @hugoalh Weblate: @hugoalh

send-discord-webhook-ghaction's People

Contributors

dependabot[bot] avatar hugoalh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mdashlw

send-discord-webhook-ghaction's Issues

Support guild/server forum

Describe

Discord now able to let channels that only contain threads, as known as forum channels, webhook can also takes "benefits" on this feature.

Expected Change

  • Add input threadname (conflict with input threadid), name of the thread to create (require the webhook channel to be a forum channel)
    • Type of <string>, maximum length is 100
    • This is optional
    • Final payload name thread_name

Action fails with "Cannot send an empty message"

Describe

Attempting to use this action results in:

Run hugoalh/[email protected]
  with:
    webhook_id: ***
    webhook_token: ***
    message_usetexttospeech: false
    message_embed_colour: INVISIBLE
    message_embed_field_0_isinline: false
    message_embed_field_1_isinline: false
    message_embed_field_2_isinline: false
    message_embed_field_3_isinline: false
    message_embed_field_4_isinline: false
    message_embed_field_5_isinline: false
    message_embed_field_6_isinline: false
    message_embed_field_7_isinline: false
    message_embed_field_8_isinline: false
    message_embed_field_9_isinline: false
    message_embed_field_10_isinline: false
    message_embed_field_11_isinline: false
    message_embed_field_12_isinline: false
    message_embed_field_13_isinline: false
    message_embed_field_14_isinline: false
    message_embed_field_15_isinline: false
    message_embed_field_16_isinline: false
    message_embed_field_17_isinline: false
    message_embed_field_18_isinline: false
    message_embed_field_19_isinline: false
    message_embed_field_20_isinline: false
    message_embed_field_21_isinline: false
    message_embed_field_22_isinline: false
    message_embed_field_23_isinline: false
    message_embed_field_24_isinline: false
    variable_prefix: %
    variable_suffix: %
    variable_join: _
Message embed field #0 is null, ignore remains.
Variable list #0 is null, ignore remains.
Status Code: 400
{"message": "Cannot send an empty message", "code": 50006}

Version

v1.1.6

To Reproduce

name: News
on:
    issues:
        types:
            - opened
jobs:
    news:
        runs-on: windows-latest
        steps:
            - name: Notify Discord
              uses: hugoalh/[email protected]
              with:
                  webhook_id: ${{ secrets.DISCORD_NEWS_ID }}
                  webhook_token: ${{ secrets.DISCORD_NEWS_TOKEN }}
                  message_text: ${{ github.event.title }}
                  message_embed_authorname: ${{ github.event.user.login }}
                  message_embed_authorurl: ${{ github.event.user.html_url }}
                  message_embed_title: ${{ github.event.title }}
                  message_embed_titleurl: ${{ github.event.html_url }}
                  message_embed_description: ${{ github.event.body }}

Open an issue on the repo after adding this workflow.

Expected Behavior

A message should be posted to Discord.

Error: Cannot find module '@hugoalh/advanced-determine'

Hey there, in Version 3.1.1 Run act will not end as planned, it drops the current failure:

[0-discord-test-rss.yml/Send To Discord 0]   🐳  docker exec cmd=[node /var/run/act/actions/[email protected]/main.js] user=
[0-discord-test-rss.yml/Send To Discord 0]   | internal/modules/cjs/loader.js:888
[0-discord-test-rss.yml/Send To Discord 0]   |   throw err;
[0-discord-test-rss.yml/Send To Discord 0]   |   ^
[0-discord-test-rss.yml/Send To Discord 0]   | 
[0-discord-test-rss.yml/Send To Discord 0]   | Error: Cannot find module '@hugoalh/advanced-determine'
[0-discord-test-rss.yml/Send To Discord 0]   | Require stack:
[0-discord-test-rss.yml/Send To Discord 0]   | - /run/act/actions/[email protected]/main.js
[0-discord-test-rss.yml/Send To Discord 0]   |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Function.Module._load (internal/modules/cjs/loader.js:730:27)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Module.require (internal/modules/cjs/loader.js:957:19)
[0-discord-test-rss.yml/Send To Discord 0]   |     at require (internal/modules/cjs/helpers.js:88:18)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Object.<anonymous> (/run/act/actions/[email protected]/main.js:6:27)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Module._compile (internal/modules/cjs/loader.js:1068:30)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Module.load (internal/modules/cjs/loader.js:933:32)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Function.Module._load (internal/modules/cjs/loader.js:774:14)
[0-discord-test-rss.yml/Send To Discord 0]   |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
[0-discord-test-rss.yml/Send To Discord 0]   |   code: 'MODULE_NOT_FOUND',
[0-discord-test-rss.yml/Send To Discord 0]   |   requireStack: [
[0-discord-test-rss.yml/Send To Discord 0]   |     '/run/act/actions/[email protected]/main.js'
[0-discord-test-rss.yml/Send To Discord 0]   |   ]
[0-discord-test-rss.yml/Send To Discord 0]   | }
Error: exit with `FAILURE`: 1
[0-discord-test-rss.yml/Send To Discord 0]   ❌  Failure - hugoalh/[email protected]

message_embed_colour seems to have become mandatory

After upgrading from v1.1.6 to v3.0.1, I'm seeing:

SyntaxError: Configuration argument "embed#0.color"'s value is not an expected colour scheme! ([GitHub Action] Send To Discord)

Using:

            - name: Notify Discord
              if: github.repository == 'flare-lang/flare-performance'
              uses: hugoalh/[email protected]
              with:
                  webhook_id: ${{ secrets.DISCORD_BENCHMARKS_ID }}
                  webhook_token: ${{ secrets.DISCORD_BENCHMARKS_TOKEN }}
                  message_embed_title: "Benchmarks: Reset"
                  message_embed_titleurl: https://performance.flare-lang.org
                  message_embed_description: Benchmark history has been reset.

(Only thing changed was the version number.)

Is this intended? I would have expected this to default to "invisible" as per action.yml.

Side note: Should probably be consistent about color vs colour spelling.

Allow to remove default embeds from links in messages

Describe

By default links to GitHub and other sites have their own embeds, which can clutter the channel a lot.

Expected Behaviour

Be able to remove default embeds from messages.

Additional Information

No response

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.