Public
Like
2
Change-Logs-Generator
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v338View latest version
A val that automatically fetches GitHub commits and posts formatted changelog updates to Discord. The bot categorizes commits based on conventional commit messages ie. feat:, fix: etc.
Example:
Before you can run the cron or try out the playground, you must add the following Environment Variables (via left sidebar of this val):
GITHUB_REPO_OWNER: ie.steel-devGITHUB_REPO_NAME: ie.steel-browserGITHUB_TOKEN:- For public repos, or personal repos: Go to GitHub Personal Access Tokens → Generate new token (classic) → Select
reposcope - For org-owned repos: Go to GitHub Personal Access Tokens → Resource Owner → Select the org the repo belongs to → read access to
Contents. You will need approval from the org admin.
- For public repos, or personal repos: Go to GitHub Personal Access Tokens → Generate new token (classic) → Select
DISCORD_WEBHOOK_URL: In your Discord server → Server Settings → Integrations → Webhooks → New Webhook → Copy Webhook URL
-
gh-to-discord.tsxis a cron that runs automatically based on your configured schedule, fetching commits since the last run -
playground.tsxYou can also manually test this val using theplayground.tsxHTTP endpoint.
Here's an Example Playground with the steel repo.

The bot automatically categorizes commits into the following sections (feel free to add more!):
- ✨ New Features (
feat:) - 🐛 Bug Fixes (
fix:) - ⚙️ Chores & Maintenance (
chore:) - 📋 Other Updates (uncategorized commits)