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: v233View latest version
A Val Town application 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:
Set the following environment variables in your Val Town dashboard:
GITHUB_REPO_OWNER: The owner of the GitHub repositoryGITHUB_REPO_NAME: The name of the GitHub repositoryGITHUB_TOKEN: A GitHub Personal Access Token withrepoaccessDISCORD_WEBHOOK_URL: The Discord webhook URL where updates will be posted
The cron runs automatically based on your configured schedule, fetching commits since the last run:
export default async function githubChangelogNotifier({ lastRunAt }: Interval): Promise<void>
You can also manually test the functionality using the test endpoint:
fetchAndPostCommits(sinceTimestamp, untilTimestamp)
The bot automatically categorizes commits into the following sections:
- β¨ New Features (
feat:) - π Bug Fixes (
fix:) - βοΈ Chores & Maintenance (
chore:) - π Other Updates (uncategorized commits)