"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "api/export_pr.go" between
gh-cli-1.10.3.tar.gz and gh-cli-1.11.0.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

export_pr.go  (gh-cli-1.10.3):export_pr.go  (gh-cli-1.11.0)
skipping to change at line 83 skipping to change at line 83
data[f] = pr.Labels.Nodes data[f] = pr.Labels.Nodes
case "projectCards": case "projectCards":
data[f] = pr.ProjectCards.Nodes data[f] = pr.ProjectCards.Nodes
case "reviews": case "reviews":
data[f] = pr.Reviews.Nodes data[f] = pr.Reviews.Nodes
case "files": case "files":
data[f] = pr.Files.Nodes data[f] = pr.Files.Nodes
case "reviewRequests": case "reviewRequests":
requests := make([]interface{}, 0, len(pr.ReviewRequests. Nodes)) requests := make([]interface{}, 0, len(pr.ReviewRequests. Nodes))
for _, req := range pr.ReviewRequests.Nodes { for _, req := range pr.ReviewRequests.Nodes {
if req.RequestedReviewer.TypeName == "" { r := req.RequestedReviewer
continue switch r.TypeName {
case "User":
requests = append(requests, map[string]st
ring{
"__typename": r.TypeName,
"login": r.Login,
})
case "Team":
requests = append(requests, map[string]st
ring{
"__typename": r.TypeName,
"name": r.Name,
"slug": r.LoginOrSlug(),
})
} }
requests = append(requests, req.RequestedReviewer )
} }
data[f] = &requests data[f] = &requests
default: default:
sf := fieldByName(v, f) sf := fieldByName(v, f)
data[f] = sf.Interface() data[f] = sf.Interface()
} }
} }
return &data return &data
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)