scm

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REVIEW_EVENT_COMMENT         = "COMMENT"
	REVIEW_EVENT_REQUEST_CHANGES = "REQUEST_CHANGES"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	// contains filtered or unexported fields
}

func NewGithub

func NewGithub(ctx context.Context, sonar *sonarqube.Sonarqube, token string) *Github

func (*Github) PublishIssuesReviewFor

func (g *Github) PublishIssuesReviewFor(ctx context.Context, issues []sonarqube.Issue, pr *sonarqube.PullRequest, requestChanges bool) error

PublishIssuesReviewFor publishes a review with a comment for each issue

type GithubPath

type GithubPath struct {
	Owner string
	Repo  string
}

type SCM

type SCM interface {
	PublishIssuesReviewFor(ctx context.Context, issues []sonarqube.Issue, pr *sonarqube.PullRequest, requestChanges bool) error
}

Jump to

Keyboard shortcuts

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