Skip to content

fix: handle deleted PR fork URL when contributor removes fork#18

Open
Ugarba202 wants to merge 2 commits intoAbdulkbk:mainfrom
Ugarba202:fix/handle-deleted-fork-pr
Open

fix: handle deleted PR fork URL when contributor removes fork#18
Ugarba202 wants to merge 2 commits intoAbdulkbk:mainfrom
Ugarba202:fix/handle-deleted-fork-pr

Conversation

@Ugarba202
Copy link
Copy Markdown

Summary
Fixes #10 by handling the case where a GitHub PR fork has been deleted.

Changes

  • Added a nil check for head.repo in GetPRDetails()
  • Returns a clear error when the fork repository is missing
  • Added tests for deleted-fork PR scenarios

Validation

  • make test
  • make build

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.

[Bug]: handle empty fork URL when PR author's fork has been deleted

1 participant