Skip to content

Commit 5f3be7f

Browse files
committed
Better match GitHub's language
1 parent 85670f8 commit 5f3be7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webviews/components/timeline.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,19 +458,19 @@ const AssignUnassignEventView = ({ event }: { event: AssignEvent | UnassignEvent
458458
const unassignees = (event as UnassignEvent).unassignees || [];
459459
const joinedAssignees = joinWithAnd(assignees.map(a => <AuthorLink key={`${a.id}a`} for={a} />));
460460
const joinedUnassignees = joinWithAnd(unassignees.map(a => <AuthorLink key={`${a.id}u`} for={a} />));
461-
461+
462462
// Check if actor is assigning/unassigning themselves
463463
const isSelfAssign = assignees.length === 1 && assignees[0].login === actor.login;
464464
const isSelfUnassign = unassignees.length === 1 && unassignees[0].login === actor.login;
465465

466466
let message: JSX.Element;
467467
if (assignees.length > 0 && unassignees.length > 0) {
468468
// Handle mixed case with potential self-assignment
469-
const assignMessage = isSelfAssign ? <>assigned themselves</> : <>assigned {joinedAssignees}</>;
469+
const assignMessage = isSelfAssign ? <>self-assigned this</> : <>assigned {joinedAssignees}</>;
470470
const unassignMessage = isSelfUnassign ? <>removed their assignment</> : <>unassigned {joinedUnassignees}</>;
471471
message = <>{assignMessage} and {unassignMessage}</>;
472472
} else if (assignees.length > 0) {
473-
message = isSelfAssign ? <>assigned themselves</> : <>assigned {joinedAssignees}</>;
473+
message = isSelfAssign ? <>self-assigned this</> : <>assigned {joinedAssignees}</>;
474474
} else {
475475
message = isSelfUnassign ? <>removed their assignment</> : <>unassigned {joinedUnassignees}</>;
476476
}

0 commit comments

Comments
 (0)