Skip to content

Improve error message when someone tries to open a merged PR with deleted branch #3659

Closed
@filiptronicek

Description

@filiptronicek

Bug description

When I tried opening a pull request which had its branch already merged and deleted, I got an error that really left me wondering what really happened.

Steps to reproduce

  1. Go to a merged PR with a deleted branch
  2. Open the URL with GitPod
  3. See the error (attached in my comment)
    Error: Cannot read property 'repository' of null

Expected behavior

Perhaps something like "couldn't find that branch in this repo, it's been probably deleted!

Example repository

More of an example Pull Request, here is one: #3431

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions