Overview
Take an error report from your own Sentry project and ask GitHub Copilot to draft a GitHub issue with reproduction steps and a failing Vitest test for you to review.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- GitHub Copilot · Sentry · Vitest
- Prerequisites
- The cloud experience on GitHub.com needs a paid Copilot plan and follows organization policies; whether Sentry offers a direct integration with Copilot is not covered by the cited pages, so the error data is pasted in.
How It Works
Pick one resolved or recent error from your Sentry project and copy its stack trace and context into a text file, removing user names, emails and tokens first. Start a Copilot session on the repository and ask for a short issue draft: what happens, the likely code path and the steps to reproduce. Ask for a failing Vitest test that captures the bug and does not change application code. Run the test yourself and confirm that it fails for the reason in the report. Edit the issue text, then file it yourself and decide whether to assign the fix to Copilot.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up GitHub Copilot.
- Connect the toolsConnect the tools this workflow relies on: GitHub Copilot, Sentry, Vitest.
- Check the prerequisitesThe cloud experience on GitHub.com needs a paid Copilot plan and follows organization policies; whether Sentry offers a direct integration with Copilot is not covered by the cited pages, so the error data is pasted in.
- Gather your detailsCollect what the prompt asks for: Where the report came from, Cleaned stack trace and context, Repository, Test file to add.
- Run the starter promptPaste the starter prompt below into GitHub Copilot and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.github.com before you rely on it.
Practical Starter Prompt: Draft an issue and a failing test
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Here is a cleaned error report from [Where the report came from]: [Cleaned stack trace and context]. In the repository [Repository], draft a GitHub issue with a title, what happens, the likely code path and steps to reproduce. Then propose a failing Vitest test for [Test file to add] that captures the bug without changing application code. Do not create the issue, push, or open a pull request; show me the drafts and wait for my approval.Remove personal data before pasting, run the proposed test yourself, and file the issue yourself after editing it.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The cited GitHub page documents that Copilot works in issue and pull request workflows and can plan and add tests, and it does not describe a Sentry connection, so the error data here is copied in by hand.
Limitations and Considerations
Error reports often carry personal data and secrets, so clean them before pasting. The newer Copilot cloud experience is for paid plans and follows organization policies. A test that fails is not proof that it fails for the reason in the report, so check the stack trace against it. A person files the issue and approves any fix, and runs every proposed test before trusting it. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
Tool Repository
A tool this workflow relies on.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)sentry.io
Sources
- GitHub Copilot on GitHub.com and GitHub Mobile - GitHub Docs (opens in a new tab)
Project documentation · docs.github.com · Undated · Source checked 2 Dec 2026, 13:21 UTC
What this source supports
- You can ask questions and delegate work from a conversation, and use Copilot directly in your issue and pull request workflows.
- For example, you might use chat to understand how a repository handles authentication, then ask Copilot to plan and add missing tests.
- Starting October 28, 2026, the new Copilot in the cloud experience on GitHub.com and GitHub Mobile is available to users with a paid Copilot plan, subject to applicable organization and enterprise policies.
- getsentry/sentry README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 2 Dec 2026, 13:21 UTC
What this source supports
- Sentry is the debugging platform that helps every developer detect, trace, and fix issues.
- vitest-dev/vitest README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 2 Dec 2026, 13:21 UTC
What this source supports
- Next generation testing framework powered by Vite.