Documentation
¶
Overview ¶
Package communication contains the communication logic for the homoglyphs rule type
Index ¶
- type GhReviewPrHandler
- func (ra *GhReviewPrHandler) AddComment(comment *github.DraftReviewComment)
- func (ra *GhReviewPrHandler) GetComments() []*github.DraftReviewComment
- func (ra *GhReviewPrHandler) Hydrate(ctx context.Context, pr *pb.PullRequest)
- func (ra *GhReviewPrHandler) SubmitReview(ctx context.Context, reviewText string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GhReviewPrHandler ¶
type GhReviewPrHandler struct {
// contains filtered or unexported fields
}
GhReviewPrHandler is a GitHub pull request review handler
func NewGhReviewPrHandler ¶
func NewGhReviewPrHandler(ghClient provifv1.GitHub) *GhReviewPrHandler
NewGhReviewPrHandler creates a new GitHub pull request review handler
func (*GhReviewPrHandler) AddComment ¶
func (ra *GhReviewPrHandler) AddComment(comment *github.DraftReviewComment)
AddComment adds a comment to the review
func (*GhReviewPrHandler) GetComments ¶
func (ra *GhReviewPrHandler) GetComments() []*github.DraftReviewComment
GetComments returns the comments of the review
func (*GhReviewPrHandler) Hydrate ¶
func (ra *GhReviewPrHandler) Hydrate(ctx context.Context, pr *pb.PullRequest)
Hydrate hydrates the handler with a pull request
func (*GhReviewPrHandler) SubmitReview ¶
func (ra *GhReviewPrHandler) SubmitReview(ctx context.Context, reviewText string) error
SubmitReview submits a review to a pull request
Click to show internal directories.
Click to hide internal directories.