Add author information in pr list JSON output

This commit is contained in:
hirasawayuki 2022-01-16 21:22:31 +09:00
parent 583af3e54c
commit 86566d8187
4 changed files with 20 additions and 5 deletions

View file

@ -200,7 +200,7 @@ func PullRequestGraphQL(fields []string) string {
for _, field := range fields {
switch field {
case "author":
q = append(q, `author{login}`)
q = append(q, `author{login,...on User{id,name}}`)
case "mergedBy":
q = append(q, `mergedBy{login}`)
case "headRepositoryOwner":