Skip to content

colemccracken/changelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changelog Generator

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]

Installation

pnpm install

Install ts-node globally if you don't have it already

pnpm add -g ts-node

Usage

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published