Skip to main content

Generate professional changelogs from Git commits with GPT-4 and GitHub

Workflow preview

Workflow preview
100%
Generate professional changelogs from Git commits with GPT-4 and GitHub preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Powered Git Changelog Generator for Automated Release Notes This workflow transforms your software release process by automatically generating clean, professional changelogs from your Git commit...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.githubtrigger, n8n-nodes-base.github, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Issam AGGOUR.

Original n8n.io source

1.1 Workflow description

Title
Generate professional changelogs from Git commits with GPT-4 and GitHub
Workflow name
Generate professional changelogs from Git commits with GPT-4 and GitHub

AI-Powered Git Changelog Generator for Automated Release Notes

This workflow transforms your software release process by automatically generating clean, professional changelogs from your Git commit history. It listens for new version tags in your GitHub repository, uses AI to summarize the changes, and publishes a polished release note, saving you hours of manual work.

Disclaimer

This template is designed for self-hosted n8n instances and requires API credentials for GitHub and an AI provider (e.g., OpenAI, Google Gemini).

🚀 Key Features

  • Fully Automated Process: Triggers automatically on a git push --tags event. Set it up once and forget about it.
  • AI-Powered Summarization: Leverages a Large Language Model (LLM) to intelligently read, categorize, and summarize your commit messages into a human-friendly format.
  • Seamless GitHub Integration: Fetches commit data and creates official GitHub Releases without leaving the n8n environment.
  • Smart Categorization: Automatically groups release notes into sections like "Features," "Fixes," and "Other Changes" for clarity.
  • Highly Customizable: Easily adapt the AI prompt, changelog format, and release template to match your project's style.
  • Saves Developer Time: Eliminates the tedious, manual task of writing release notes, freeing up developers to focus on coding.

⚙️ How It Works

The workflow is a linear process triggered by a webhook from GitHub.

1. GitHub Webhook Trigger

  • A Webhook node is configured to listen for push events from your specified GitHub repository.
  • It is filtered to only run when a new tag (e.g., v1.2.0) is pushed, which is the standard practice for signaling a new release.

2. Fetch Commit History

  • Once triggered, a GitHub node uses the webhook payload to identify the repository and the new tag.
  • It makes an API call to GitHub to compare the new tag with the most recent previous tag, fetching all the commit messages in between.

3. AI Summarization

  • The list of raw commit messages is passed to an AI node (e.g., OpenAI or Google Gemini).
  • A pre-defined prompt instructs the AI to process the commits. The prompt asks the model to summarize the changes and group them into logical categories.
  • The AI returns a single, well-formatted markdown text block representing the complete changelog.

4. GitHub Release Creation

  • The final GitHub node takes the AI-generated markdown.
  • It creates a new GitHub Release, using the tag from the webhook as the release version and the AI-generated text as the release body/description.

🛠️ Setup Steps & Credentials

To get this workflow running, you will need to configure the following credentials and settings:

  1. GitHub:
    • You need a GitHub Personal Access Token with repo scope to allow n8n to access your repository.
    • Create a GitHub OAuth2 Api or GitHub Api credential in n8n.
    • Assign this credential to the Get Commits and Create GitHub Release nodes.
    • In the Webhook node, copy the Test URL and add it as a new webhook in your GitHub repository's settings (Settings > Webhooks). Set the content type to application/json and select "Just the push event" or "Send me everything," then filter for tag pushes in the workflow itself.
  2. AI Provider (OpenAI / Gemini):
    • Obtain an API Key from your chosen AI provider (e.g., platform.openai.com or aistudio.google.com).
    • Create the corresponding credential in n8n (e.g., OpenAI API or Google Gemini(PaLM) Api).
    • Assign this credential to the Generate Changelog with AI node.

💡 Customization & Learning

This workflow is a powerful base that you can easily extend:

  • Refine the AI Prompt: Modify the prompt in the Generate Changelog with AI node to change the tone, language, or structure of your release notes. You could ask it to generate a "What's New" section in a different style, for example.
  • Add Notifications: Extend the workflow by adding a Discord or Slack node after the final step to notify your team or community channel that a new version has been released.
  • Support Different Git Providers: Swap the GitHub nodes for GitLab or other provider nodes to adapt the workflow to a different platform.
  • Experiment with Models: Try different AI models (e.g., GPT-4 vs. GPT-3.5-Turbo, or different Gemini versions) to see how it affects the quality and cost of your generated changelogs.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - GitHub Trigger

Type / Role
n8n-nodes-base.githubTrigger - githubTrigger
Config choices
Version 1

Block 2 - Get Commits

Type / Role
n8n-nodes-base.github - github
Config choices
Version 1

Block 3 - Create GitHub Release

Type / Role
n8n-nodes-base.github - github
Config choices
Version 1

Block 4 - Note - GitHub Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Note - Get Commits

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Note - LLM Agent

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Note - GitHub Release

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 9 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

3. Summary Table

Workflow Generate professional changelogs from Git commits with GPT-4 and GitHub
Complexity intermediate
Nodes 10
Categories Engineering, AI Summarization
Author Issam AGGOUR
Published 01 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8137/8137.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate professional changelogs from Git commits with GPT-4 and GitHub do?

AI Powered Git Changelog Generator for Automated Release Notes This workflow transforms your software release process by automatically generating clean, professional changelogs from your Git commit...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Summarization use case.