Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(source-control): resolve SSH aliases and repository GitHub accounts #23909

Closedroodboi(GitHub profile, opens in a new tab)wants to merge 8 commits intomain fromrefs/pull/23909/headopened View on GitHub

Showing 24 changed files with 52 additions and 2 deletions (loading 21).

x
0 of 24 viewed, 24 left
47 additions and 0 deletionsapps/mobile/src/features/pull-requests/pullRequestList.test.tsModified
View file
@@ -349,6 +349,53 @@
});
});
​
+it("uses row accounts for mobile Authored and author:me filters", () => {
+ const rows = [
+ entry(1, { viewer: "work-user", author: { login: "work-user", name: null, avatarUrl: null } }),
+ entry(2, {
+ viewer: "personal-user",
+ author: { login: "personal-user", name: null, avatarUrl: null },
+ }),
+ entry(3, {
+ viewer: "personal-user",
+ author: { login: "work-user", name: null, avatarUrl: null },
+ }),
+ ];
+ const viewers = { "github.com": "work-user" };
+ expect(
+ filterPullRequestList(
+ rows,
+ { ...DEFAULT_PR_LIST_CONTROLS, involvement: "authored" },
+ viewers,
+ "",
+ new Set(),
+ ).map((row) => row.number),
+ ).toEqual([2, 1]);
+ expect(
+ filterPullRequestList(
+ rows,
+ { ...DEFAULT_PR_LIST_CONTROLS, filters: { author: "me" } },