Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(source-control): opt in to repository-scoped GitHub credentials #21265

ClosedChinoman10(GitHub profile, opens in a new tab)wants to merge 25 commits intomain fromrefs/pull/21265/headopened View on GitHub

Showing 31 changed files with 182 additions and 1 deletion (loading 28).

x
0 of 31 viewed, 31 left
123 additions and 0 deletionsapps/mobile/src/features/pull-requests/pullRequestList.test.tsModified
View file
@@ -226,6 +226,103 @@
[1, mbp],
]);
});
+​
+ it("keeps repository viewers through head pages and filters each environment before deduplication", () => {
+ const rows = [
+ entry(1, {
+ repository: "OwnerA/Repo",
+ author: { login: "Alice", name: null, avatarUrl: null },
+ }),
+ entry(2, {
+ repository: "OwnerB/Repo",
+ author: { login: "Bob", name: null, avatarUrl: null },
+ }),
+ ];
+ const merged = mergeEnvironmentPullRequestPages([
+ {
+ environmentId: cups,
+ pages: pullRequestListHead(null, {
+ ...page(rows),
+ viewers: {
+ "github.com": "Alice",
+ "github.com ownera/repo": "Other",
+ "github.com ownerb/repo": "Other",
+ },
+ }),
+ },
+ {
+ environmentId: mbp,