Connectors

/

GitHub

/

File a GitHub issue for a failed Ghost Inspector suite run
Write
Cross-Connector

Track a failed Ghost Inspector suite run in GitHub, once

For developers who want suite failures in GitHub with their evidence and a link back, without duplicate issues, by asking their AI assistant.

Try PopdockAI free
Get a live demo
File a GitHub issue for a failed Ghost Inspector suite run
File a GitHub issue for yesterday's failed Checkout suite run in Ghost Inspector, labelled e2e.
Issue #212 already tracks the Checkout suite, so I drafted a comment instead of a new issue. - Run: 6 October, 3 of 17 tests failed - Guest checkout: step 7, element #pay not found - Apply coupon: console error, 500 from /api/coupons - Link back: a comment on the suite result naming #212 Shall I post the comment and the link?
GitHub
Sample figures. Your results come from your own account.
ghost-inspector-get-suite-result
ghost-inspector-get-test-result
ghost-inspector-get-test-step
ghost-inspector-get-console-log
github-get-issue
github-add-issue-comment
github-add-issue
ghost-inspector-add-suite-result-comment

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

GitHub

GitHub
Run it on your own GitHub data.

Connect GitHub, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Duplicate issues for the same broken suite

Turning a failed Ghost Inspector suite run into a GitHub issue means copying failing steps and console errors, checking for an open issue and linking the two. Skip the check and the backlog fills with duplicates.

Without PopdockAI

  • Open each failing test in the suite run
  • Copy failing steps and console errors
  • Search GitHub for an open issue
  • Link the run and issue by hand

With PopdockAI

  • Each failing test's step and first console errors are read
  • An open issue tracking the suite is looked for
  • A new issue or a comment is drafted for you to confirm
  • Each system is written at most once, with a link on the suite run

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Record the failed Ghost Inspector suite result `{suite-result-id}` as a GitHub issue, applying the label `{label}` if given, and link the issue back on the suite result.

**Step 1: Read the failure (Ghost Inspector)**

Call `ghost-inspector-get-suite-result` with `id` set to `{suite-result-id}`. If it is not found, report that and stop. If `passing` is true, say the run passed and stop.

Call `ghost-inspector-get-test-result` with `suite-id` set to the result's `suite-id`, `passing` set to false, and `date-created.from` / `date-created.to` set to the suite result's `date-execution-started` and `date-execution-finished`. For each failing test result, call `ghost-inspector-get-test-step` with `test-result-id` and `passing` false to get the failing step, and `ghost-inspector-get-console-log` with `test-result-id` and `error` true for console errors (keep the first three per test).

**Step 2: Look for an existing issue (GitHub)**

The issue title is `[Ghost Inspector] <suite-name> failing`. Call `github-get-issue` with `title.contains` set to `[Ghost Inspector] <suite-name>` and `status` open.

**Step 3: Draft, confirm, then write (GitHub)**

Draft the body in markdown: the suite name, the suite result id `{suite-result-id}`, the run time, pass/fail counts, then one section per failing test with its name, test id, test result id, the failing step's command, target and value, and the console errors.

Show the draft to the user and say whether you will create a new issue or comment on the existing one. Wait for confirmation.

* If an open issue exists: call `github-add-issue-comment` with its `issue-number` and the draft as `body`.
* Otherwise: call `github-add-issue` with the title, the draft as `body`, and `{label}` as `label` if given. It returns nothing, so call `github-get-issue` with `title.contains` again to get the new `issue-number` and `issue-url`.

**Step 4: Link back (Ghost Inspector)**

Call `ghost-inspector-add-suite-result-comment` with `suite-result-id` set to `{suite-result-id}` and a `message` of `Tracked in GitHub issue #<issue-number>: <issue-url>`.

**Step 5: Report**

The issue number and url, whether it was new or commented on, and the failing tests included.

**Rules & Guidelines:**

* The ghost-inspector tools are on the ghost-inspector server; the github tools are on the github server.
* Write at most once to each system: one `github-add-issue` or one `github-add-issue-comment`, then one `ghost-inspector-add-suite-result-comment`, and only after the user confirms the draft.
* Do NOT call `ghost-inspector-execute-suite`, `ghost-inspector-cancel-suite-run`, `github-update-issue` or `github-add-issue-assignee`.

**Validation:**

* If the suite result has failing counts but no failing test results in its time window, still file the issue with the suite-level counts and say the per-test detail could not be matched.
* If the new issue cannot be found again after creating it, do not create a second one. Report that the issue was created but could not be linked, and skip Step 4.

Who it's for

One answer, three teams that use it

QA engineers

File suite failures with evidence

Failing steps and console errors go into the issue, so developers can start straight away.

File a GitHub issue for today's failed Login suite run in Ghost Inspector.

Developers

Add to the existing issue

If an issue already tracks the suite, a comment is added instead of a new issue.

Add the latest failed Search suite run to the existing GitHub issue if there is one, labelled e2e.

QA leads

Link test runs and issues both ways

The suite result gets a comment with the GitHub link, so anyone can follow it.

Track last night's failed Nightly regression run in GitHub and link it back in Ghost Inspector.

How it works

What PopdockAI does when you ask

You give the suite result and an optional label, and your AI assistant drafts a new issue or a comment. Nothing is written until you confirm.

01

Ask

You give the suite result and an optional label.

Your AI tool

02

Read

It reads each failing test's step and first console errors.

ghost-inspector-get-suite-result
ghost-inspector-get-test-result
ghost-inspector-get-test-step
ghost-inspector-get-console-log

03

Check

It looks for an open GitHub issue already tracking the suite and drafts an issue or comment.

github-get-issue

04

Confirm

On your yes it writes once and comments the GitHub link on the suite result.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for GitHub and one secure connection to your AI tool. No code, no exports.

get-data

ghost-inspector-get-suite-result

Returns Ghost Inspector suite runs, with the number of passing and failing tests in each, the run timing and the suite they belong to. Filter by suite, date range, pass state, or a minimum count of failing tests.
get-data

ghost-inspector-get-test-result

Returns individual Ghost Inspector test runs, including whether the run passed, how long it took, and the test and suite it belongs to. Filter by test, suite, browser, date range, pass state, or a minimum execution time for finding slow runs. This is the tool to start from when investigating a failure.
get-data

ghost-inspector-get-test-step

Returns the individual steps executed within a Ghost Inspector test run, in sequence, with the command, the target element and whether the step passed. Pass a test result ID to see that run's steps. Filter to failing steps only, or to a single command such as click or assign, to find exactly where a test broke.
get-data

ghost-inspector-get-console-log

Returns the browser console output captured during a Ghost Inspector test run, flagging which entries were errors. Pass a test result ID to see that run's output, and filter to errors only or to a date range. Useful for telling an application bug apart from a flaky selector.
get-data

github-get-issue

Returns GitHub issues from a repository. Filter by issue number, title text, state, labels, assignee, author, milestone, and created or updated date range.
run-action

github-add-issue-comment

Posts a comment on a GitHub issue or pull request, identified by issue number.
run-action

github-add-issue

Opens a new issue in a GitHub repository. Takes a title, and optionally a body, an assignee, a label and a milestone number.
run-action

ghost-inspector-add-suite-result-comment

Adds a comment to a Ghost Inspector suite result, which is how a failed suite run gets a record of why it failed and what was done about it.
Read only.Nothing in GitHub Changes

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.

How Popdock AI secures your data

The outcome

Every suite failure tracked once

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

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.

Try PopdockAI Free
See Documentation