You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Heading Reduction (Optional):** If enabled, it reduces heading sizes for a cleaner, more compact display:
17
+
- H3 headings are converted to bold and underlined.
18
+
- H2 headings are converted to bold.
19
+
-**Description Length Management:** Ensures the release description fits within Discord's embed message limits (default 4096 characters), trimming excess text by cutting at newlines when possible or adding a continuation link.
20
+
-**Custom Embed Appearance:**
21
+
- Set a custom color for the Discord embed message.
22
+
- Optionally include a custom footer with a title, icon, and a timestamp to make the notification more informative.
23
+
-**Error Handling:** Provides clear error messages for any invalid or missing inputs, ensuring that the webhook action does not fail silently.
24
+
-**Webhook Delivery:** Sends the formatted message to the specified Discord channel via webhook, ensuring your release notifications are promptly delivered with the correct details.
17
25
18
26
---
19
27
@@ -107,7 +115,6 @@ If you have suggestions for how GitHub Releases To Discord Action could be impro
107
115
This file will be used to test the action locally and simulate a real release event webhook payload. Refer to the [GitHub Webhook documentation](https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=published#release) and the [Github API Documentation](https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-a-release) for more information on the webhook payload structure.
108
116
109
117
6. Fill the test json file with the necessary fields to simulate a release event.
110
-
111
118
5. Create a test file called `.env` in the main root of the project with the following environmental variables:
112
119
113
120
```bash
@@ -125,7 +132,7 @@ This file will be used to test the action locally and simulate a real release ev
125
132
126
133
8. Fill the `.env` file with your chosen environmental variables values.
127
134
9. Create a Discord webhook in your server, making sure to add the webhook url to the `.env` file under `INPUT_WEBHOOK_URL=`.
128
-
10. Run the action locally with `act release -e <your.json>` (e.g. `act release -e tests/sample-test-release.json`) and check the output in your Discord server.
135
+
10. Run the action locally with `act release -e <your.json>` (e.g., `act release -e tests/sample-test-release.json`) and check the output in your Discord server.
129
136
11. Confirm that the action works as expected.
130
137
12. Make your changes and commit them: `git commit -m '<commit_message>'`. Please follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
0 commit comments