Skip to content

fix: remove GitHub org/repo in error messages#3808

Merged
erika-wallace merged 4 commits into
mainfrom
ew/fix-sentry-repo-leak
Jul 13, 2026
Merged

fix: remove GitHub org/repo in error messages#3808
erika-wallace merged 4 commits into
mainfrom
ew/fix-sentry-repo-leak

Conversation

@erika-wallace

Copy link
Copy Markdown
Contributor

Summary

This PR updates getRepo() error handling to avoid exposing GitHub org/repo names in thrown error messages. Also, it preserves HTTP status codes on the new error so existing telemetry filters treat 4xx as user errors.

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • test: Add/update/remove tests

Testing

Notes:

Requires a Heroku pipeline for testing.

Steps:

  1. Pull down this branch
  2. npm i && npm run build
  3. ./bin/run pipelines:connect PIPELINE -r fake-repo/xyz - should not contain Github org/repo name

Screenshots (if applicable)

Related Issues

GUS work item: W-20503496

@erika-wallace erika-wallace requested a review from a team as a code owner July 10, 2026 19:47

@jdodson jdodson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

What I did:

  • Eyeballed the changes. Not a lot, looks good.
  • Ran through a light code review process with Claude, that also looks good.
  • Hand tested it as you noted and that also confirmed the fix too.

@erika-wallace erika-wallace merged commit 1419e2a into main Jul 13, 2026
18 checks passed
@erika-wallace erika-wallace deleted the ew/fix-sentry-repo-leak branch July 13, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants