communication

package
v0.0.72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package communication contains the communication logic for the homoglyphs rule type

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL