Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(github): pull request images load on GitHub Enterprise Server #35443

OpenGuardedAirplane(GitHub profile, opens in a new tab)wants to merge 17 commits intomain fromrefs/pull/35443/headopened View on GitHub

Showing 18 changed files with 12 additions and 3 deletions (loading 15).

x
0 of 18 viewed, 18 left
7 additions and 1 deletionapps/mobile/src/features/pull-requests/PullRequestMarkdown.tsxModified
View file
@@ -19,6 +19,7 @@
resolveChangeRequestMediaUrl,
} from "@t3tools/client-runtime/pull-request-references";
import {
+ changeRequestMediaHost,
sourceControlClients,
type ReferenceAutolink,
} from "@t3tools/client-runtime/source-control-clients";
@@ -67,7 +68,12 @@
});
const cwd = project?.workspaceRoot;
const media = cwd
- ? { environmentId: target.environmentId, cwd, repository: target.input.repository }
+ ? {
+ environmentId: target.environmentId,
+ cwd,
+ repository: target.input.repository,
+ host: changeRequestMediaHost(props.changeRequest),
+ }
: null;
return (
<AutolinksContext value={autolinks}>
4 additions and 1 deletionapps/mobile/src/features/pull-requests/pullRequestMediaSource.tsModified
View file
@@ -7,11 +7,13 @@
readonly environmentId: EnvironmentId;
readonly cwd: string;