Blog
Trigger an AI Agent to Generate GitHub Release Notes
Tutorial
ยท
Quick answer: To trigger an AI agent when a GitHub release is published, add the GitHub Trigger to a BuildShip workflow, sign in with GitHub OAuth, choose the repository and owner, and subscribe to the release event. Click Connect. BuildShip creates the webhook on the repository, so there is no payload URL to paste by hand. When a release is published, the agent can read the merged pull requests, draft release notes, write them to your changelog database and, if you want, open a docs update. A general chat agent can write notes only if you paste the commits in, and it cannot update the changelog or leave a log of the run.

People already search for โGitHub release notesโ and โautomatically generate release notes.โ GitHub can assemble a list of merged pull requests for you, and that list is a good start. What it will not do is write those changes in your product voice, file them in the changelog your customers read, or update a docs page. That last mile is where an AI agent with a backend is worth having.
Why generate release notes with an agent, not a pasted prompt
If you copy a compare view into ChatGPT, you can get a decent draft. That still depends on someone remembering to do it, usually after the release is already public. The notes land in a document, not in the changelog table that drives your site, and there is no record of which tag produced which draft.
The GitHub Trigger starts the work at the moment of the release. You authenticate with OAuth, pick a repository, and subscribe to the events you care about. GitHub has more than 40 webhook events. For this agent, release is the one you want: it fires when a release is published.
A general chat agent cannot:
Receive the GitHub webhook.
Call the GitHub API for the pull requests and commits that went into the tag.
Write a changelog row, or open a follow-up change in the repo.
Leave a step-level log that your team can audit later.
The agent is there for judgement: what is a user-facing change, what is internal, and how to say it clearly. The trigger, the writes and the logs are why it belongs in BuildShip rather than in a chat window.
What the GitHub Trigger actually does
The GitHub Trigger creates a webhook on a repository you can access and starts the linked BuildShip workflow when the subscribed events occur.
Authentication is OAuth. You click the fingerprint icon, sign in to GitHub, and grant the permissions BuildShip asks for. When that succeeds, the icon turns from red to green. You do not paste a personal access token into the trigger.
The trigger needs:
Repository. The repository to watch. You must have permission to create a webhook on it.
Owner. The user or organization that owns the repository.
Events. The events that should start the workflow. The docs include
push,issues,pull_request,releaseandfork, and many more. GitHubโs own list is in Webhook events and payloads.
For release notes, subscribe to release. If you also want a different workflow that reviews pull requests or opens an incident timeline when an issue is labeled, those are separate events and, usually, separate workflows. Do not bundle them into this one.
Click Connect after you have chosen the repository, owner and event. The Connect step sets up the webhook on the repository: BuildShipโs webhook-based triggers register the endpoint through the GitHub API, so you do not paste a payload URL by hand. Confirm it under the repositoryโs Settings, Webhooks. A green fingerprint icon only means OAuth succeeded. The webhook list is what tells you the endpoint is in place.
Map the payload to workflow inputs. GitHub sends a different payload for each event. On a release event you will usually want the action (for example published), the tag name, the release name and body, the repository full name, and the HTML URL of the release. Use Get Data after you publish a draft or a test release, then add the fields you need to the input schema.

Subscribe to the release event so the agent runs when you publish, not on every push.
A concrete case: draft notes and file them in the changelog
Take a product team that cuts a GitHub release every two weeks. The release is tagged, the binary is out, and the public changelog is a table on the website, not the GitHub releases page. Someone still has to write the customer-facing notes and paste them into that table. That is the step that slips.
Here is the path I would build:
A maintainer publishes a GitHub release for tag
v2.6.0.The GitHub Trigger starts the workflow with the release payload.
A Branch node continues only if the action is
published, so drafts and edits do not write a second changelog row.The workflow calls the GitHub API to list pull requests and commit messages since the previous tag.
An AI step drafts short release notes in the teamโs voice: user-facing changes first, fixes next, internal chores left out or grouped at the end.
The draft is written to a
changelogtable, with the version, date and apending_reviewstatus.Optionally, the workflow opens a small docs pull request, or posts the draft to an engineering Slack channel for a quick look before the row is marked published.
The agent does not publish the marketing site by itself. It files a draft that a person can approve. That is enough to stop the โwe shipped, the notes will come laterโ pattern.

The GitHub Trigger can listen to more than 40 events. For this agent, release is enough.
Set up the trigger
Open a BuildShip workflow and go to the Connect tab. Add the GitHub Trigger.
Click the fingerprint icon and complete GitHub OAuth. Wait until the icon is green.
Enter the repository name and the owner.
In Events, choose
release. Leave the other events off unless you have a clear use for them in this same workflow.Click Connect. In GitHub, open the repository Settings and confirm the webhook is there. If OAuth succeeded but Connect failed, the signed-in account may not have permission to create a webhook. On organization repositories that often means admin access.
Then publish a test release, or use Get Data after a real one in a development repository, and map the payload to inputs. Keep a development repository or a pre-release tag for tests if you do not want drafts appearing on a production changelog.
Build the release-notes agent
Confirm the action. GitHub can send release events for created drafts, published releases, edited releases and deleted releases. A Branch node should continue only on published.
Gather the changes. Use a GitHub API node or an HTTP node with the OAuth connection, and list pull requests merged between the previous tag and this one. If the release body already contains GitHubโs auto-generated notes, pass those in as well. The agent should see titles, labels and issue numbers, not a raw diff of every file.
Find the previous tag. List the repositoryโs releases or tags and take the one immediately before this version. A compare such as v2.5.0...v2.6.0 gives you the commits in that range, and a pull-request search against the same range gives you the merged PRs. If this is the first release, there is no previous tag. In that case, pass the release body and whatever GitHub already generated, and say so in the draft so a reviewer can fill any gaps.
Skip pre-releases unless you want them. A release event also fires for pre-releases. The payload includes a prerelease flag. A Branch node should stop if that flag is true, unless you deliberately want draft notes for a beta. Draft releases that have not been published yet arrive with a different action, and the earlier Branch already drops those.
Keep large releases under control. A busy repository can merge dozens of pull requests in two weeks. Paginate the compare or search results, and send the model titles, labels and a short description, not the full diffs. If the list is still huge, summarise in batches and then combine, or start from GitHubโs auto-generated notes and rewrite those.
Draft, with a tight brief. Add an AI node (keyless nodes run on your BuildShip credits, or you can bring your own provider key):
> You write customer-facing release notes. Using the pull request titles, labels and any auto-generated notes, draft a short changelog for this version. Group under New, Improvements and Fixes. Skip internal refactors, dependency bumps and CI changes unless they affect users. Do not invent features that are not in the list. Keep each item to one sentence.
Pass the tag name, the compare list and any existing release body. Ask for Markdown that matches the format you already use on the site.
Write the changelog. Insert a row in your changelog database (or a CMS, if that is where the site reads from) with the version, date, draft body and pending_review. If a row for this tag already exists, update it rather than creating a duplicate. That write is the point of the agent. If the event is an edit of an already-published release, leave a published row alone unless you have a review step that allows an update. An edited payload should not silently overwrite notes that someone already approved.
Optional docs update. If a change should also land in a docs file, the workflow can open a pull request with the draft section. Keep that behind a Branch, for example only when a pull request was labeled docs. Most releases will not need it.
Tell people. Post the draft and the changelog link to the team channel. A person marks the row as published when they are happy with it.
If you would rather not wire the canvas by hand, click Build with AI to open Compass and describe the flow in plain language. It builds on your actual canvas, so you can still test and edit every step. For a longer research pass across several repos, the workflow can hand off to an AI agent built with Agent Max.

Auto-generated GitHub notes are a starting list. The agent turns them into the changelog your customers actually read.
Test it, ship it and watch a release all the way through
In a development repository, publish a release with a couple of merged pull requests behind it.
Confirm the webhook fired, the workflow ran, and a changelog row appeared with the right version.
Read the draft as if you were a customer. Adjust the prompt if it is too technical or if it is including chores you wanted left out.
Click Ship on the production workflow only when you are happy with a dry run against a real tag, or against a pre-release.
Open the logging panel at the bottom of the workspace to see what happened. You can switch from the Workflow view to the Node view to read the logs for a single step, and test runs show live logs as they happen. Production logs usually show up within about 45 seconds, and the refresh icon loads them straight away. To add your own messages, use the Log Message to Console node, or call logging.log inside any nodeโs code.
See the logging docs and the node failure docs for retries. Use version history before you change a live notes prompt.
Do not let the agent tag a release or push to the default branch on its own. It drafts and files. People publish.
Built for teams that run this in production
Release automation has a way of becoming load-bearing, so a few things matter beyond the first test:
Full code access. Open any node to read or change its JavaScript or TypeScript.
Team access control. Role-based access lets you decide who can view a workflow, who can edit it and who can ship it.
Your own Google Cloud. Workflows run on Google Cloud, and you can run them in your own Google Cloud project as an enterprise option.
A log per release. When someone asks why a line appeared in the changelog, you can open the run and see the payload, the draft and the write.
This is another listener, in the sense we use in Why AI Agents Need Listeners, Not Cron Jobs: the release is the event, not a Friday reminder to โwrite the notes.โ
FAQ
Can I trigger an AI agent from a GitHub webhook?
Yes. Add the GitHub Trigger, sign in with OAuth, choose the repository, owner and events, and click Connect. BuildShip creates the webhook. An AI node in the same workflow can then draft release notes or take other actions from the payload.
Which event should I use for release notes?
Use release, and in the workflow continue only when the action is published. Created drafts, edits and deletions should not each write a new changelog row.
Does BuildShip create the GitHub webhook for me?
Yes. After you click Connect, the webhook should appear in the repository Settings, Webhooks. You need permission to create a webhook on that repository. A green fingerprint only confirms OAuth, so check the webhook list as well.
Can the agent write back to GitHub?
Yes, through GitHub nodes or an HTTP request in later steps, for example to open a docs pull request. The trigger itself only receives the event. Writes are part of the workflow you build, and they show up in the logs.
What about pull request reviews or issue automations?
The same GitHub Trigger can subscribe to pull_request, issues and many other events, but those are different jobs. Give them their own workflows so a release-notes agent does not also try to review a pull request.
How much does it cost to try?
BuildShip plans start with a 7-day trial, and a card is required to start it. See the pricing page for plans and credits.
Start building
Start your 7-day trial (a card is required), connect the GitHub Trigger to a development repository, and publish a test release. If you are building release automation for a larger team, talk to us about enterprise.





