Are you lazy and writing commit messages that look like fix: docs
? Use this CLI tool powered by LangGraph and Groq to automatically generate changelogs from git commit history. It looks at the messages and the diffs to generate appropriate context so that you can turn
git log
commit ca5f7cbbf503bb80d57cfe51d639a5d6c4dc23ce (HEAD -> main)
Author: <hiding my email>
Date: Tue Dec 24 11:59:33 2024 -0500
initial commit
Into...
ts-node src/main.ts . --num_days 30 --exclude chore
* Initial commit of the project, including the creation of the README file, package.json, and other necessary files - [@Cole McCracken]
* Added the getGitCommits function to retrieve recent git commits from a repository - [@Cole McCracken]
* Implemented the buildAgent function to create a LangChain agent for generating changelogs - [@Cole McCracken]
* Created the main.ts file to handle command-line arguments and invoke the buildAgent function - [@Cole McCracken]
pnpm install
pnpm add -g ts-node
This will generate a changelog for this repo for the last 30 days! Set env vars
export GROQ_API_KEY=<find your key at https://console.groq.com/keys>
Run
ts-node src/main.ts . --num_days 30 --exclude "chore"