build/maintner/maintpb
Colin Nelson 36a2830f67 maintner: extend GitHubIssue to track Code Review Events
Previously, maintner would track only the Events
on an Issue/PullRequest, which missed out on the
discussions and approvals that the review
process generates.

This adds a new struct GitHubReviewEvent to represent
the results from the GitHub "pulls/reviews" API. This
struct follows the same pattern as the GitHubIssueEvent
struct.

To accomplish this, a new call has been added to the
sync() function: syncReviews, which follows the
pattern established with syncEvents().

Finally, this adds an additonal method: ForeachReview which
iterates over the GitHubReviewEvents in
the given GitHubIssue serially and in
chronological order.

GitHub API Reference: https://developer.github.com/v3/pulls/reviews/

Updates golang/go#21086

Change-Id: I4f59e154a4e4a8a4b8f2676dea932cf44354c288
Reviewed-on: https://go-review.googlesource.com/c/144699
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-12-06 18:48:45 +00:00
..
README.md all: add README.md files where missing, and tool to keep them updated 2017-08-02 22:17:52 +00:00
maintner.pb.go maintner: extend GitHubIssue to track Code Review Events 2018-12-06 18:48:45 +00:00
maintner.proto maintner: extend GitHubIssue to track Code Review Events 2018-12-06 18:48:45 +00:00
maintpb.go all: update to grpc.go4.org and grpc-codegen.go4.org package names 2017-06-09 22:04:38 +00:00

README.md

GoDoc

golang.org/x/build/maintner/maintpb

Package maintpb is a generated protocol buffer package.