/
/
Find the GitHub commits behind a Bugsnag release's new errors
For engineers who want a short list of suspect commits for each regression in a release, by asking their AI assistant.
On this page
Connector
Connect BugSnag, pick your AI tool and paste the prompt.
The problem
Finding the commit behind a regression is guesswork
When a release introduces new errors, the culprit is usually among the commits shipped since the previous release. Finding it means listing those commits and reading them against each error, which is slow and invites guesswork.
Without PopdockAI
- Find the release and the one before it
- List every commit shipped in between
- Read each commit against each new error
- Guess at the culprit
With PopdockAI
- The release and the previous one in the same stage are found
- New errors and commits in between are listed
- Commits mentioning an error's class or file are named as leads
- It says when the range is too wide, read-only
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** For the Bugsnag project `{project-name}`, show which errors first appeared in release `{app-version}` and which GitHub commits shipped between the previous release and that one.
**Step 1: Bound the release in Bugsnag**
Call `bugsnag-get-release` with `project-name` set to `{project-name}` and `app-version` set to `{app-version}`. If more than one release stage matches, prefer production and say which stage you used. Then call `bugsnag-get-release` again with `project-name` and `release-date.to` set to the day of that release, and take the release immediately before it in the same release-stage-name as the previous release.
Record both releases' release-date and source-control-revision, and the target release's errors-introduced-count.
**Step 2: Find the new errors**
Call `bugsnag-get-error` with `project-name` set to `{project-name}` and `last-seen.from` set to the target release-date. Keep only errors whose first-seen-date is on or after the target release-date and before the next release if there is one. Show at most `{max-errors}` of them (default 20), ordered by events descending.
**Step 3: Find what shipped on GitHub**
Call `github-get-commit` with `commit-date.from` set to the previous release-date and `commit-date.to` set to the target release-date. If both releases carry a source-control-revision, use them to mark the boundary commits and drop anything outside them.
**Step 4: Report**
1. Release summary: version, stage, date, errors introduced, and the commit range (previous revision to this revision).
2. New errors: error-class, message, severity, events, first-seen-date, error-url.
3. Commits in the release: short sha, author-name, commit-date, first line of message.
4. Suspects: for each new error, name any commit whose message mentions the error-class, the context, or the file from the error's events. To see the file, call `bugsnag-get-event` with `error-id` and `max-records` 1. Mark each link as a lead, not a finding.
**Rules & Guidelines:**
* `bugsnag-get-release`, `bugsnag-get-error` and `bugsnag-get-event` are on the bugsnag server. `github-get-commit` is on the github server.
* This is read-only. Do not call `bugsnag-assign-error`, `bugsnag-update-error-severity`, `github-add-issue` or any other Action tool.
**Validation:**
* If there is no previous release, use the seven days before the target release-date as the commit window and say so.
* If errors-introduced-count is 0 and no errors pass the first-seen filter, report the release as clean and still list the commits.
* If the commit window returns more than 100 commits, report the count, list the 30 most recent, and say the range is too wide to attribute.Who it's for
One answer, three teams that use it
Developers
Start from the likely commit
Read the handful of commits that mention the error instead of the whole release.
Which commits could have caused the new errors in Fabrikam Checkout release 3.4.0?
Release engineers
Decide what to revert
See suspect commits for each regression before choosing a revert.
List the new errors in Contoso Storefront 5.1.2 and the GitHub commits linked to each.
Tech leads
Route regressions to the right author
Send each new error to whoever wrote the likely commit.
Match the regressions in Northwind Web 2.0.3 to the commits shipped since 2.0.2.
How it works
What PopdockAI does when you ask
You name the project and version, and your AI assistant lines up new Bugsnag errors with the GitHub commits behind the release. It offers leads, never findings.
01
Ask
You name the Bugsnag project and app version.
02
Bound
It finds that release and the one before it in the same stage.
03
Gather
It lists new errors and the GitHub commits in between.
04
Report
You get suspect commits per error, marked as leads.
What PopdockAI provides
The tools behind the answer
Ready made tools for BugSnag and one secure connection to your AI tool. No code, no exports.
bugsnag-get-release
bugsnag-get-error
github-get-commit
bugsnag-get-event
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
A short list of suspect commits per regression
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
