Post

What I built today: == Notion GitHub PR Diff Documenter == a workflow that automates the creation of internal documentation directly from GitHub pull requests. #buildinpublic #dev #ai Check out the thread 🧵

Once the Notion page details arrive in n8n, the workflow retrieves key pull request details such as the repository name and PR number. It then combines the GitHub PR DIFF files in a JSON object, filtering out unnecessary files (e.g., package-lock.json) to focus on essential content.

An AI-driven content generation step, using models like Google Gemini for huge file diffs and GPT-4o, transforms the processed data into clear, instructive documentation. It follows a predefined template for consistency. Sidenote: The Output-fixing parser from LangChain is 🤯