Commit 34ae85d
Use reflexive wording for self-assignment timeline events (#8286)
* Initial plan
* Add special wording for self-assignment timeline events
When actor and assignee/unassignee are the same person:
- Use "assigned themselves" instead of "assigned {user}"
- Use "removed their assignment" instead of "unassigned {user}"
This aligns the wording with GitHub.com behavior.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Handle self-assignment in mixed assignment/unassignment events
Also apply special wording for self-assignment when both assignments
and unassignments occur in the same consolidated event.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Refactor to reduce code duplication in AssignUnassignEventView
Extract joinedAssignees and joinedUnassignees into variables to avoid
repeating the joinWithAnd expressions and improve maintainability.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Better match GitHub's language
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent 3e96e22 commit 34ae85d
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
462 | 466 | | |
463 | 467 | | |
464 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
465 | 472 | | |
466 | | - | |
| 473 | + | |
467 | 474 | | |
468 | | - | |
| 475 | + | |
469 | 476 | | |
470 | 477 | | |
471 | 478 | | |
| |||
0 commit comments