Repository navigation
ci(discord): post commits to a per-repository forum post - #1335
Conversation
Move the commit feed script into a reusable workflow that posts to a Discord forum channel with a thread_id, so silo-server, silo-apple, and silo-android each write to their own post. silo-server's feed now calls it with its DISCORD_COMMITS_THREAD_ID variable and the new DISCORD_COMMITS_WEBHOOK_URL secret. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedNext included review available in 8 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Problem
Related issue: N/A — narrow fix
The Discord commit feed only covers silo-server. We want silo-apple and silo-android commits there too, with each repository in its own place, so the feed channel is now a forum with one post per repository.
Approach
The existing script moves into
reusable-discord-commits.yml, aworkflow_callworkflow. It is unchanged apart from addingthread_idto the webhook URL, which a forum-channel webhook needs to know which post to write to. It also fails with a clear message when the thread ID or webhook is missing.discord-commits.ymlnow calls it with two repository settings:DISCORD_COMMITS_THREAD_ID(variable): the repository's forum post.DISCORD_COMMITS_WEBHOOK_URL(secret): the forum channel's webhook.Both are already set in all three repositories. silo-apple and silo-android get the same caller in separate PRs, pointing at
Silo-Server/silo-server/.github/workflows/reusable-discord-commits.yml@main. Keeping one copy of the script means the three feeds cannot drift.The webhook uses a new secret name, so the current feed keeps posting to the old channel until this merges.
Validation
actionlintpasses on both workflow files.node --checkpasses on the embedded script.mainafter merge.Risks
If a thread ID is wrong, the notify job fails and shows the Discord error. Other CI is unaffected.
After merge, the old
DISCORD_WEBHOOK_URLsecret is unused and can be deleted.Checklist
AI Disclosure
🤖 Generated with Claude Code