Suppress Discord release announcement embeds
This commit is contained in:
parent
8d76db9e96
commit
5080bb7007
|
|
@ -98,6 +98,7 @@ Use this structure for the announcement pack:
|
|||
Channel guidance:
|
||||
|
||||
- Discord can be more direct, celebratory, and useful: mention the release, top changes, package availability, and links. Prefer `:rocket:`, `:point_right:`, `:sparkles:`, `:tools:`, `:test_tube:`, and similar Discord emoji shortcodes over raw Unicode emoji.
|
||||
- Discord posts should suppress link previews. Use the webhook `SUPPRESS_EMBEDS` message flag and wrap links in angle brackets, for example `<https://github.com/elsa-workflows/elsa-core/releases/tag/3.7.0>`.
|
||||
- Discord stable releases should say the stable version is available and ask for feedback on upgrades or regressions.
|
||||
- Discord preview/RC releases should explicitly say they are intended for testing and validation before stable release.
|
||||
- LinkedIn should explain the release in terms of developer value and project momentum, with fewer implementation details.
|
||||
|
|
@ -114,8 +115,8 @@ Use this shape for Discord drafts and adapt the details to the actual release:
|
|||
|
||||
We've published the stable **Elsa 3.7.0** release across **Elsa Core** and **Elsa Studio**.
|
||||
|
||||
:point_right: Core: https://github.com/elsa-workflows/elsa-core/releases/tag/3.7.0
|
||||
:point_right: Studio: https://github.com/elsa-workflows/elsa-studio/releases/tag/3.7.0
|
||||
:point_right: Core: <https://github.com/elsa-workflows/elsa-core/releases/tag/3.7.0>
|
||||
:point_right: Studio: <https://github.com/elsa-workflows/elsa-studio/releases/tag/3.7.0>
|
||||
|
||||
This release brings a solid set of improvements around **authentication**, **workflow diagnostics**, **Studio extensibility**, and the **modular server runtime**.
|
||||
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ def render_discord(
|
|||
|
||||
{intro}
|
||||
|
||||
:point_right: Release notes: {release_url}
|
||||
:point_right: Release notes: <{release_url}>
|
||||
|
||||
{availability}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ def main() -> int:
|
|||
print("error: provide --bot-token or DISCORD_BOT_TOKEN when using --crosspost", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
payload = json.dumps({"content": message[:2000]}).encode("utf-8")
|
||||
payload = json.dumps({"content": message[:2000], "flags": 4}).encode("utf-8")
|
||||
status, body = post_payload(webhook_url, payload, wait=args.crosspost)
|
||||
if status not in (200, 204):
|
||||
print(f"error: Discord returned HTTP {status}", file=sys.stderr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue