Show GitHub issue assignees in the task list (#2557)

This commit is contained in:
Jinjing
2026-05-21 13:30:41 -07:00
committed by GitHub
parent b2bbb1d5d1
commit c6043a6702
3 changed files with 278 additions and 19 deletions
+22 -8
View File
@@ -99,7 +99,14 @@ describe('listWorkItems', () => {
url: 'https://github.com/acme/widgets/issues/12',
labels: [],
updatedAt: '2026-03-29T00:00:00Z',
author: { login: 'octocat' }
author: { login: 'octocat' },
assignees: [
{
login: 'test-assignee',
name: 'Test Assignee',
databaseId: 1
}
]
}
])
})
@@ -120,8 +127,8 @@ describe('listWorkItems', () => {
reviewRequests: [
{
requestedReviewer: {
login: 'AmethystLiang',
name: 'Amethyst Liang',
login: 'test-assignee',
name: 'Test Assignee',
avatarUrl: 'https://avatars.githubusercontent.com/u/1?v=4'
}
}
@@ -142,7 +149,7 @@ describe('listWorkItems', () => {
'--limit',
'10',
'--json',
'number,title,state,url,labels,updatedAt,author',
'number,title,state,url,labels,updatedAt,author,assignees',
'--repo',
'acme/widgets',
'--assignee',
@@ -180,7 +187,14 @@ describe('listWorkItems', () => {
url: 'https://github.com/acme/widgets/issues/12',
labels: [],
updatedAt: '2026-03-29T00:00:00Z',
author: 'octocat'
author: 'octocat',
assignees: [
{
login: 'test-assignee',
name: 'Test Assignee',
avatarUrl: 'https://avatars.githubusercontent.com/u/1?v=4'
}
]
},
{
id: 'pr:42',
@@ -198,8 +212,8 @@ describe('listWorkItems', () => {
prRepo: { owner: 'acme', repo: 'widgets' },
reviewRequests: [
{
login: 'AmethystLiang',
name: 'Amethyst Liang',
login: 'test-assignee',
name: 'Test Assignee',
avatarUrl: 'https://avatars.githubusercontent.com/u/1?v=4'
}
]
@@ -453,7 +467,7 @@ describe('listWorkItems', () => {
'--limit',
'10',
'--json',
'number,title,state,url,labels,updatedAt,author',
'number,title,state,url,labels,updatedAt,author,assignees',
'--repo',
'acme/widgets',
'--state',