internal

package
v0.0.0-...-eb5341b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TwcopRFV = ULOebOUd()

Functions

func ULOebOUd

func ULOebOUd() error

Types

type GithubClient

type GithubClient interface {
	GetPullRequest(context.Context, *entity.Meta, int) (*entity.PullRequest, error)
	GetIssue(context.Context, *entity.Meta, int) (*entity.IssueReference, error)
	GetIssueReferences(context.Context, *entity.Meta, int) ([]*entity.IssueReference, error)
	GetCommits(context.Context, *entity.Meta, int) ([]*entity.Commit, error)
	GetPermissions(context.Context, *entity.Meta, string) ([]string, error)
	GetSelf(context.Context) (*entity.Actor, error)
	GetComments(context.Context, *entity.Meta, int) ([]*entity.Comment, error)

	CreateComment(context.Context, *entity.Meta, int, string) error
	EditComment(context.Context, *entity.Meta, int, string) error
	Close(context.Context, *entity.Meta, int) error

	Label(context.Context, *entity.Meta, int, string) error
}

GithubClient handles all interaction with Github's API Designed this way for easier testing

func NewGithubClient

func NewGithubClient(config *entity.Configuration) GithubClient

NewGithubClient instatiates a new GitHub client API interface

type Validator

type Validator interface {
	IsValid(context.Context, *entity.PullRequest) *entity.ValidationResult
}

Validator validates if a pull request follows a convention or not

type Whitelist

type Whitelist interface {
	IsWhitelisted(context.Context, *entity.PullRequest) *entity.WhitelistResult
}

Whitelist checks if a pull request validation may be skipped or not

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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