Documentation
¶
Index ¶
- type Administration
- type Github
- type Layout
- func (cfg *Layout) AllResultsPassed(results []*Result) bool
- func (cfg *Layout) GetOverralResults(results []*Result) string
- func (cfg *Layout) HasAssignees(hasAssignees bool) *Result
- func (cfg *Layout) HasLabels(hasLabels bool) *Result
- func (cfg *Layout) HasReviewers(hasReviewers bool) *Result
- func (cfg *Layout) IsNamePatternValid(name string) *Result
- type Permission
- type PullRequest
- type Repositories
- type Repository
- type Result
- type Settings
- type TestSuite
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 ¶
AllResultsPassed check if all the results passed.
func (*Layout) GetOverralResults ¶
GetOverralResults creates the report that will be returned based on the test suite.
func (*Layout) HasAssignees ¶
HasAssignees check if the pull request has assignees.
func (*Layout) HasReviewers ¶
HasReviewers check if the pull request has reviewers.
func (*Layout) IsNamePatternValid ¶
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 ¶
Repository represents user permission in a single repository.