From 04d3d1951c00297fb0563c7573c489f0b1f836ad Mon Sep 17 00:00:00 2001 From: Kieran Klaassen Date: Sat, 29 Nov 2025 09:00:10 -0800 Subject: [PATCH] Remove hardcoded Discord webhook from changelog command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace with generic example showing users how to add their own webhook URL. πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../commands/changelog.md | 27 +++++++------------ 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/plugins/compounding-engineering/commands/changelog.md b/plugins/compounding-engineering/commands/changelog.md index e306d61..3a04d1e 100644 --- a/plugins/compounding-engineering/commands/changelog.md +++ b/plugins/compounding-engineering/commands/changelog.md @@ -100,28 +100,21 @@ Now review the changelog using the EVERY_WRITE_STYLE.md file and go one by one t Remember, your final output should only include the content within the tags. Do not include any of your thought process or the original data in the output. -## Discord Posting +## Discord Posting (Optional) -Once you have the changelog, post it to Discord using the following commands: - -### Post to default channel: +You can post changelogs to Discord by adding your own webhook URL: ``` -rails runner 'DiscordWebhookClient.new.send_message(content: "{{CHANGELOG}}")' +# Set your Discord webhook URL +DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN" + +# Post using curl +curl -H "Content-Type: application/json" \ + -d "{\"content\": \"{{CHANGELOG}}\"}" \ + $DISCORD_WEBHOOK_URL ``` -### Post to 🌀cora channel: - -``` -# Write changelog to temporary file -File.write("/tmp/changelog.txt", changelog_content) - -# Post to Discord -rails runner 'content = File.read("/tmp/changelog.txt"); DiscordWebhookClient.new(token: "https://discord.com/api/webhooks/1378934451735760926/HUpZ81La0aPcbFspgwAsJZ7fcN1-6sj37BhRtrHeG19rhPnX5zZSpM8NttST6Qkb48uh").send_message(content: content)' - -# Clean up -rm /tmp/changelog.txt -``` +To get a webhook URL, go to your Discord server β†’ Server Settings β†’ Integrations β†’ Webhooks β†’ New Webhook. ## Error Handling