Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Ignore struct {
Users []string `yaml:"users"`
Labels []string `yaml:"labels"`
} `yaml:"ignore"`
Issue Item `yaml:"issue"`
PullRequest Item `yaml:"pull_request"`
}
Config represents `.hello.yml` file.
type Payload ¶
type Payload struct {
Action string `json:"action"`
Issue struct {
Number int `json:"number"`
Labels []struct {
Name string `json:"string"`
} `json:"labels"`
} `json:"issue"`
PullRequest struct {
Number int `json:"number"`
} `json:"pull_request"`
Repository struct {
DefaultBranch string `json:"default_branch"`
Name string `json:"name"`
Owner struct {
Login string `json:"login"`
} `json:"owner"`
Private bool `json:"private"`
} `json:"repository"`
Sender struct {
Login string `json:"login"`
} `json:"sender"`
Installation struct {
ID int `json:"id"`
} `json:"installation"`
}
Payload struct of GitHub webhooks for issues and pull request.
func (*Payload) IsPullRequest ¶
IsPullRequest returns true when the payload it's a pull request payload.
Click to show internal directories.
Click to hide internal directories.