Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentAction ¶
type DerekRepoConfig ¶
type DerekRepoConfig struct {
// A redirect URL to load the config from another location.
Redirect string
// Features can be turned on/off if needed.
Features []string
// Users who are enrolled to make use of Derek
Maintainers []string
// Curators is an alias for Maintainers and is only used if the Maintainers list is empty.
Curators []string
//ContributingURL url to contribution guide
ContributingURL string `yaml:"contributing_url"`
Messages []Message `yaml:"custom_messages"`
RequiredInIssues []string `yaml:"required_in_issues"`
}
DerekRepoConfig is a config for a Derek-enabled repository
func MergeDerekRepoConfigs ¶
func MergeDerekRepoConfigs(localConfig, remoteConfig DerekRepoConfig) (DerekRepoConfig, error)
type InstallationRequest ¶
type InstallationRequest struct {
Installation ID `json:"installation"`
}
type IssueCommentOuter ¶
type IssueCommentOuter struct {
Repository Repository `json:"repository"`
Comment Comment `json:"comment"`
Action string `json:"action"`
Issue Issue `json:"issue"`
InstallationRequest
}
type IssueLabel ¶
type IssueLabel struct {
Name string `json:"name"`
}
type IssuesOuter ¶
type IssuesOuter struct {
Repository Repository `json:"repository"`
Comment Comment `json:"comment"`
Action string `json:"action"`
Issue Issue `json:"issue"`
Sender Sender `json:"sender"`
InstallationRequest
}
type PullRequest ¶
type PullRequest struct {
Number int `json:"number"`
AuthorAssociation string `json:"author_association"`
Body string `json:"body"`
State string `json:"state"`
Head Head `json:"head"`
}
func (*PullRequest) FirstTimeContributor ¶
func (p *PullRequest) FirstTimeContributor() bool
FirstTimeContributor whether the contributor is new to the repo
type PullRequestOuter ¶
type PullRequestOuter struct {
Repository Repository `json:"repository"`
PullRequest PullRequest `json:"pull_request"`
Action string `json:"action"`
InstallationRequest
}
type Repository ¶
Click to show internal directories.
Click to hide internal directories.