Skip to content

Instantly share code, notes, and snippets.

View TranBaVinhSon's full-sized avatar
🎯
Focusing

Tran B. V. Son TranBaVinhSon

🎯
Focusing
View GitHub Profile
@TranBaVinhSon
TranBaVinhSon / release_note_generator.ts
Last active September 3, 2024 06:23
Getting all releases from the past 7 days from each repository within an organization, categorizing them, and creating a release note for business stakeholders.
import { Octokit } from "@octokit/rest";
import OpenAI from "openai";
import "dotenv/config";
const octokit = new Octokit({ auth: process.env.GH_TOKEN });
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});