-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from garethjevans/count-comment
feat: show the number of comments against an issue/pr
- Loading branch information
Showing
10 changed files
with
96 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,9 @@ var ( | |
repository { | ||
nameWithOwner | ||
} | ||
comments { | ||
totalCount | ||
} | ||
labels(first: 10) { | ||
nodes { | ||
name | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,9 @@ var ( | |
} | ||
} | ||
reviewDecision | ||
comments { | ||
totalCount | ||
} | ||
commits(last: 1){ | ||
nodes{ | ||
commit{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package pr | ||
|
||
type Comments struct { | ||
TotalCount int `json:"totalCount"` | ||
} | ||
|
||
type Repository struct { | ||
NameWithOwner string `json:"nameWithOwner"` | ||
} | ||
|
||
type Author struct { | ||
Login string `json:"login"` | ||
} | ||
|
||
type Labels struct { | ||
Nodes []Label `json:"nodes"` | ||
} | ||
|
||
type Label struct { | ||
Name string `json:"name"` | ||
} | ||
|
||
type Commits struct { | ||
Nodes []CommitEntry `json:"nodes"` | ||
} | ||
|
||
type CommitEntry struct { | ||
Commit Commit `json:"commit"` | ||
} | ||
|
||
type Commit struct { | ||
StatusCheckRollup StatusCheckRollup `json:"statusCheckRollup"` | ||
} | ||
|
||
type StatusCheckRollup struct { | ||
State string `json:"state"` | ||
Contexts StatusContext `json:"contexts"` | ||
} | ||
|
||
type StatusContext struct { | ||
Nodes []Context `json:"nodes"` | ||
} | ||
|
||
type Context struct { | ||
State string `json:"state"` | ||
Description string `json:"description"` | ||
Context string `json:"context"` | ||
Conclusion string `json:"conclusion"` | ||
Name string `json:"name"` | ||
Title string `json:"title"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters