Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(pull-requests): composer # picker searches tracked folder repositories when project root is not a git repo #41957

Openfour1er(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/41957/headopened View on GitHub

Showing 24 changed files with 121 additions and 10 deletions (loading 21).

x
0 of 24 viewed, 24 left
98 additions and 3 deletionsapps/mobile/src/features/pull-requests/pullRequestList.test.tsModified
View file
@@ -11,6 +11,7 @@
DEFAULT_PR_LIST_CONTROLS,
EMPTY_PULL_REQUEST_STATS_CACHE,
filterPullRequestList,
+ findCachedPullRequestStat,
mergePullRequestListEntries,
mergeEnvironmentPullRequestPages,
nextPullRequestListInput,
@@ -526,11 +527,53 @@
]);
expect(filled[1]).toBe(rows[1]);
});
+​
+ it("keeps same-project same-repository stats separate across hosts", () => {
+ const githubRow = { ...entry(1, { host: "github.com" }), environmentId: cups };
+ const enterpriseRow = {
+ ...entry(1, {
+ host: "github.example.com",
+ url: "https://github.example.com/org/repo/pull/1",
+ }),
+ environmentId: cups,
+ };
+ const githubOnly = withShownPullRequestStats(
+ [githubRow, enterpriseRow],
+ [
+ {
+ environmentId: cups,
+ stats: [{ ...stat(1, 11, 2), host: "github.com" }],
+ },