vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Use reflexive wording for self-assignment timeline events

Open Copilot opened this issue 2 months ago • 0 comments

Issue timeline events show "Tyriar unassigned Tyriar" instead of "Tyriar removed their assignment" like GitHub.com does.

Changes

Modified AssignUnassignEventView in timeline.tsx to detect self-assignment/unassignment:

  • When actor and assignee/unassignee are the same (single person): use reflexive wording
    • "assigned themselves" instead of "assigned {user}"
    • "removed their assignment" instead of "unassigned {user}"
  • When different or multiple people: use standard wording

Example

// Before
"Tyriar unassigned Tyriar"
"Tyriar assigned Tyriar"

// After
"Tyriar removed their assignment"
"Tyriar assigned themselves"

The logic compares actor.login with assignees[0].login only when the array length is exactly 1, ensuring the reflexive form is used only for single-person self-operations.

Original prompt

This section details on the original issue you should resolve

<issue_title>Unassigning uses inconsistent wording to .com</issue_title> <issue_description>Testing microsoft/vscode-pull-request-github#6991

Should we align the wording?

Image

Image</issue_description>

<agent_instructions>Add special wording like "removed their assignment" and "assigned themselves" for issue timeline assignment items where the actor and actee are the same.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

  • Fixes microsoft/vscode-pull-request-github#7005

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot avatar Dec 10 '25 16:12 Copilot