fix(pr view): fetch nameWithOwner in headRepository GraphQL query
Commit dd424d85f added NameWithOwner to PRRepository for agent-task
listings but didn't update the headRepository GraphQL query to fetch it.
This caused gh pr view --json headRepository to emit an empty
"nameWithOwner":"" field, breaking the pr-create-respects-simple-
pushdefault acceptance test.
Fetch nameWithOwner in the query and update the test assertion to expect
it.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
be4960a255
commit
5ed8cf0faa
2 changed files with 2 additions and 2 deletions
|
|
@ -387,7 +387,7 @@ func IssueGraphQL(fields []string) string {
|
|||
case "headRepositoryOwner":
|
||||
q = append(q, `headRepositoryOwner{id,login,...on User{name}}`)
|
||||
case "headRepository":
|
||||
q = append(q, `headRepository{id,name}`)
|
||||
q = append(q, `headRepository{id,name,nameWithOwner}`)
|
||||
case "assignees":
|
||||
q = append(q, `assignees(first:100){nodes{id,login,name,databaseId},totalCount}`)
|
||||
case "assignedActors":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue