Revert "print repo info for status commands"

This reverts commit d64dcdca95.
This commit is contained in:
vilmibm 2020-01-29 17:41:36 -06:00
parent d64dcdca95
commit 86cb09fe84
5 changed files with 4 additions and 71 deletions

View file

@ -8,10 +8,9 @@ import (
)
type IssuesPayload struct {
ParentRepo string
Assigned IssuesAndTotalCount
Mentioned IssuesAndTotalCount
Authored IssuesAndTotalCount
Assigned IssuesAndTotalCount
Mentioned IssuesAndTotalCount
Authored IssuesAndTotalCount
}
type IssuesAndTotalCount struct {
@ -109,9 +108,6 @@ func IssueStatus(client *Client, repo ghrepo.Interface, currentUsername string)
TotalCount int
Nodes []Issue
}
Parent struct {
NameWithOwner string
}
HasIssuesEnabled bool
}
}
@ -119,9 +115,6 @@ func IssueStatus(client *Client, repo ghrepo.Interface, currentUsername string)
query := fragments + `
query($owner: String!, $repo: String!, $viewer: String!, $per_page: Int = 10) {
repository(owner: $owner, name: $repo) {
parent {
nameWithOwner
}
hasIssuesEnabled
assigned: issues(filterBy: {assignee: $viewer, states: OPEN}, first: $per_page, orderBy: {field: UPDATED_AT, direction: DESC}) {
totalCount
@ -161,7 +154,6 @@ func IssueStatus(client *Client, repo ghrepo.Interface, currentUsername string)
}
payload := IssuesPayload{
ParentRepo: resp.Repository.Parent.NameWithOwner,
Assigned: IssuesAndTotalCount{
Issues: resp.Repository.Assigned.Nodes,
TotalCount: resp.Repository.Assigned.TotalCount,