Skip to content

Commit

Permalink
Refactor 6
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Nov 1, 2023
1 parent 9133f2a commit a1c6bbf
Show file tree
Hide file tree
Showing 9 changed files with 1,550 additions and 1,393 deletions.
322 changes: 135 additions & 187 deletions README-ZH.md

Large diffs are not rendered by default.

214 changes: 88 additions & 126 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
| **Versions** | **Status** | **Target - GitHub Actions Runner** | **Target - NodeJS** |
|:-:|:-:|:-:|:-:|
| v5.X.X | L | >= v2.297.0 | ^ v16.13.0 |
| v6.X.X | L | >= v2.310.0 | ^ v20.9.0 |
| v5.X.X | ✔️ | >= v2.297.0 | ^ v16.13.0 |
| < v5.0.0 | ❌{🐛🧓} | *Multiple* | *Multiple* |

## Report Vulnerability
Expand Down
47 changes: 30 additions & 17 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,44 @@ inputs:
key:
description: "{string} Key."
required: true
method:
description: "{string} Method to send."
content:
description: "{string} Content of the message."
required: false
payload:
description: "{object} JSON/YAML payload."
username:
description: "{string} Override the default username of the webhook."
required: false
avatar_url:
description: "{string} Override the default avatar of the webhook."
required: false
tts:
description: "{boolean} Whether to use TTS (Text To Speech) for the message."
required: false
default: "false"
embeds:
description: "{object[]} Embed rich content for the message."
required: false
allowed_mentions_parse:
description: "{string[]} Allowed mention types to parse from the content."
required: false
default: "roles,users,everyone"
allowed_mentions_roles:
description: "{string[]} Allowed roles' IDs to mention."
required: false
allowed_mentions_users:
description: "{string[]} Allowed users' IDs to mention."
required: false
default: "{}"
files:
description: "{string[]} Files as attachments of the message."
required: false
default: "[]"
wait:
description: "{boolean} Whether to wait for Discord confirmation of message send before response."
required: false
default: "false"
thread_type:
description: "{string} Thread type of the message; Send to the specified thread within a webhook's channel."
default: "true"
thread_id:
description: "{string} Thread ID for the message channel."
required: false
default: "none"
thread_value:
description: "{string} Thread value of the message."
thread_name:
description: "{string} Thread name for the forum channel."
required: false
truncate_enable:
description: "{boolean} Whether to try truncate firstly when inputs are too large."
Expand All @@ -39,10 +56,6 @@ inputs:
description: "{string} Ellipsis position."
required: false
default: "end"
threadid:
description: "{string} Thread ID of the message; Send to the specified thread within a webhook's channel."
required: false
deprecationMessage: "This input is replaced by `thread_type` and `thread_value`."
outputs:
response:
description: "{string} Response content."
Expand All @@ -53,7 +66,7 @@ outputs:
status_text:
description: "{string} Request status text."
runs:
using: "node16"
using: "node20"
main: "dist/main.js"
branding:
icon: "send"
Expand Down
47 changes: 0 additions & 47 deletions discord-webhook-payload-template.json

This file was deleted.

30 changes: 3 additions & 27 deletions dist/main.js

Large diffs are not rendered by default.

Loading

0 comments on commit a1c6bbf

Please sign in to comment.