feat: add release announcements workflow for Discord and X (Twitter)#1235
feat: add release announcements workflow for Discord and X (Twitter)#1235rrajan94 merged 2 commits intoTracer-Cloud:mainfrom
Conversation
Greptile SummaryThis PR adds a GitHub Actions workflow that posts release announcements to Discord and optionally to X (Twitter) whenever a GitHub Release is published, and adds Confidence Score: 5/5Safe to merge — all previous review findings are resolved and no new blocking issues found. All five previously flagged issues (Discord content length, mutable action tag, missing curl timeout, missing private-repo guard on Discord job, unsafe multiline output) are addressed. The Discord payload is safely built with jq, the Twitter action is pinned to a commit SHA, and secret-absence handling is correct. No P0 or P1 issues remain. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub (release published)
participant WF as Actions Workflow
participant DS as Discord Webhook
participant TW as X / Twitter API
GH->>WF: release.published event
par announce-discord job
WF->>WF: Check DISCORD_WEBHOOK_URL set?
WF->>WF: Truncate notes to 1700 chars
WF->>WF: jq-build JSON payload
WF->>DS: POST /webhooks/... (curl --max-time 30)
DS-->>WF: HTTP 204 OK
and announce-x job
WF->>WF: Check all 4 Twitter secrets present?
alt secrets missing
WF->>WF: should_tweet=false → skip
else secrets present
WF->>WF: Extract Major feature from release notes
WF->>WF: Compose ≤280-char tweet (with fallback)
WF->>WF: Write message to GITHUB_OUTPUT (heredoc)
WF->>TW: Eomm/why-don-t-you-tweet (pinned SHA)
TW-->>WF: Tweet posted
end
end
Reviews (2): Last reviewed commit: "fix: enhance release announcement condit..." | Re-trigger Greptile |
|
@greptile-apps review |
|
LGTM 👍 |
|
🏄 Some PRs rot in review for six weeks. @Devesh36's said "not today" and merged like it owned the place. 🌊 👋 Join us on Discord - OpenSRE : hang out, contribute, or hunt for features and issues. Everyone's welcome. |

What this PR does
Adds a new GitHub Actions workflow to announce published releases on Discord, with optional X (Twitter) posting support.
Why
We want automatic release communication in community channels whenever a GitHub Release is published, while safely skipping X when Twitter credentials are not configured.
Changes
.github/workflows/release-announcements.ymlreleasewithtypes: [published]announce-discordjob posts release details to Discord webhookannounce-xjob composes a tweet and posts viaEomm/why-don-t-you-tweet@v1when secrets are present.gitignore.secretsto prevent local secret file from being committedDiscord Message Includes
X/Twitter Behavior
Major feature:from release notes for tweet contentRequired Secrets
DISCORD_WEBHOOK_URL_UPDATETWITTER_CONSUMER_API_KEY(optional for now)TWITTER_CONSUMER_API_SECRET(optional for now)TWITTER_ACCESS_TOKEN(optional for now)TWITTER_ACCESS_TOKEN_SECRET(optional for now)Validation Done
HTTP 204)HTTP 204)Notes