model

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 3 Imported by: ? 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

This section is empty.

Functions

This section is empty.

Types

type Administration

type Administration struct {
	Permission Permission `yaml:"permission"`
}

Administration represents general permissions.

type Github

type Github struct {
	AppID              int      `yaml:"appId"`
	Organization       string   `yaml:"organization"`
	User               string   `yaml:"user"`
	WebhookSecret      string   `yaml:"webhookSecret"`
	PrivateKeyLocation string   `yaml:"privateKeyLocation"`
	PrivateKey         string   `yaml:"privateKey"`
	Events             []string `yaml:"events"`
}

Github represents github app owner configuration.

type Layout

type Layout struct {
	Administration Administration `yaml:"administration"`
	PullRequest    PullRequest    `yaml:"pullRequest"`
}

Layout represents permissions level and pull request functionalities.

func (*Layout) AllResultsPassed

func (cfg *Layout) AllResultsPassed(results []*Result) bool

AllResultsPassed check if all the results passed.

func (*Layout) GetOverralResults

func (cfg *Layout) GetOverralResults(results []*Result) string

GetOverralResults creates the report that will be returned based on the test suite.

func (*Layout) HasAssignees

func (cfg *Layout) HasAssignees(hasAssignees bool) *Result

HasAssignees check if the pull request has assignees.

func (*Layout) HasLabels

func (cfg *Layout) HasLabels(hasLabels bool) *Result

HasLabels check if the pull request has labels.

func (*Layout) HasReviewers

func (cfg *Layout) HasReviewers(hasReviewers bool) *Result

HasReviewers check if the pull request has reviewers.

func (*Layout) IsNamePatternValid

func (cfg *Layout) IsNamePatternValid(name string) *Result

IsNamePatternValid check if the pull request name is valid.

type Permission

type Permission struct {
	Users        []string       `yaml:"users"`
	Repositories []Repositories `yaml:"repositories"`
}

Permission represents high level user's and repository permissions.

type PullRequest

type PullRequest struct {
	EnableOverview        bool      `yaml:"enableOverview"`
	OverViewCommand       string    `yaml:"overViewCommand"`
	ApproveCommand        string    `yaml:"approveCommand"`
	RunTestSuiteCommand   string    `yaml:"runTestSuiteCommand"`
	MergeCommand          string    `yaml:"mergeCommand"`
	MergeAndDeleteCommand string    `yaml:"mergeAndDeleteCommand"`
	TestSuite             TestSuite `yaml:"testSuite"`
}

PullRequest represents commands and functionalities.

type Repositories

type Repositories struct {
	Repository Repository `yaml:"repository"`
}

Repositories represents low level permissions in repositories.

type Repository

type Repository struct {
	Name  string   `yaml:"name"`
	Users []string `yaml:"users"`
}

Repository represents user permission in a single repository.

type Result

type Result struct {
	Title  string
	Passed bool
	Body   string
}

Result represents the result of a test case.

type Settings

type Settings struct {
	Layout Layout `yaml:"layout"`
	Github Github `yaml:"github"`
}

Settings represents the configuration and authorization aspects.

type TestSuite

type TestSuite struct {
	NamePattern string `yaml:"namePattern"`
	Reviewers   bool   `yaml:"reviewers"`
	Assignees   bool   `yaml:"assignees"`
	Labels      bool   `yaml:"labels"`
}

TestSuite represents configuration for the test cases.

Jump to

Keyboard shortcuts

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