Changelog from merged pull requests

Each merged pull request is added to a Notion changelog automatically.

Medium Saves ~2 hours/month Developer & ITBy Flowngn team

Works with n8n · Make · Zapier

How it works

Trigger: GitHub — pull request event
  1. Receive the pull request event.
  2. Continue only if it was closed and merged.
  3. Create a Notion page with the title, author and link.

Diagram

trueGPull request eventGitHub Trigger⑂Merged?IfNAdd to changelogNotion
Trigger App Logic

Build it

Pick your tool — same automation, step by step.

Copy and paste straight into an n8n canvas (Ctrl+V), or download and use Import from File. Then connect your own credentials and replace every YOUR_… placeholder.

Workflow JSON
Show code (149 lines)
{
  "name": "Changelog from merged pull requests (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## Changelog from merged pull requests\nEach merged pull request is added to a Notion changelog automatically.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
        "height": 260,
        "width": 340
      },
      "id": "26067c04-e776-42a7-a37a-b6a76afcb8d1",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "owner": {
          "__rl": true,
          "value": "YOUR_GITHUB_USER",
          "mode": "name"
        },
        "repository": {
          "__rl": true,
          "value": "YOUR_REPO",
          "mode": "name"
        },
        "events": [
          "pull_request"
        ],
        "options": {}
      },
      "id": "26067c04-e776-42a7-a37a-b6a76afcb8d1",
      "name": "Pull request event",
      "type": "n8n-nodes-base.githubTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "webhookId": "26067c04-e776-42a7-a37a-b6a76afcb8d1"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $json.body.action === 'closed' && $json.body.pull_request.merged }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "26067c04-e776-42a7-a37a-b6a76afcb8d1",
      "name": "Merged?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "create",
        "databaseId": {
          "__rl": true,
          "value": "YOUR_CHANGELOG_DATABASE_ID",
          "mode": "id"
        },
        "title": "={{ $json.body.pull_request.title }}",
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "Author|rich_text",
              "textContent": "={{ $json.body.pull_request.user.login }}"
            },
            {
              "key": "Link|url",
              "urlValue": "={{ $json.body.pull_request.html_url }}"
            },
            {
              "key": "Merged|date",
              "date": "={{ $json.body.pull_request.merged_at }}"
            }
          ]
        },
        "options": {}
      },
      "id": "26067c04-e776-42a7-a37a-b6a76afcb8d1",
      "name": "Add to changelog",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        600,
        0
      ]
    }
  ],
  "connections": {
    "Pull request event": {
      "main": [
        [
          {
            "node": "Merged?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merged?": {
      "main": [
        [
          {
            "node": "Add to changelog",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

Open in the playground to edit →

Tips

  • Use PR labels (feature, fix) as a Notion select property to group entries.

Related flows