You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: src/GitHub.App/Services/PullRequestService.cs
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -308,18 +308,20 @@ public IObservable<string> ExtractFile(
308
308
}
309
309
else
310
310
{
311
-
sha=awaitgitClient.GetPullRequestMergeBase(
312
-
repo,
313
-
pullRequest.Base.RepositoryCloneUrl,
314
-
pullRequest.Head.RepositoryCloneUrl,
315
-
pullRequest.Base.Sha,
316
-
pullRequest.Head.Sha,
317
-
pullRequest.Base.Ref,
318
-
pullRequest.Head.Ref);
319
-
320
-
if(sha==null)
311
+
try
321
312
{
322
-
thrownewNotFoundException($"Couldn't find merge base between {pullRequest.Base.Sha} and {pullRequest.Head.Sha}.");
313
+
sha=awaitgitClient.GetPullRequestMergeBase(
314
+
repo,
315
+
pullRequest.Base.RepositoryCloneUrl,
316
+
pullRequest.Head.RepositoryCloneUrl,
317
+
pullRequest.Base.Sha,
318
+
pullRequest.Head.Sha,
319
+
pullRequest.Base.Ref,
320
+
pullRequest.Head.Ref);
321
+
}
322
+
catch(NotFoundExceptionex)
323
+
{
324
+
thrownewNotFoundException($"The Pull Request file failed to load. Please check your network connection and click refresh to try again. If this issue persists, please let us know at [email protected]",ex);
0 commit comments