Update notification.go
This commit is contained in:
parent
06fef06d9e
commit
d3f4754397
1 changed files with 1 additions and 4 deletions
|
@ -22,7 +22,7 @@ type Notification struct {
|
||||||
Irc *IRC `yaml:"irc,omitempty"`
|
Irc *IRC `yaml:"irc,omitempty"`
|
||||||
Slack *Slack `yaml:"slack,omitempty"`
|
Slack *Slack `yaml:"slack,omitempty"`
|
||||||
|
|
||||||
GitHub *github.GitHub `yaml:"github_status,omitempty"`
|
GitHub github.GitHub `yaml:"--"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *Notification) Send(context *model.Request) error {
|
func (n *Notification) Send(context *model.Request) error {
|
||||||
|
@ -67,9 +67,6 @@ func (n *Notification) Send(context *model.Request) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// send email notifications
|
// send email notifications
|
||||||
if n.GitHub == nil {
|
|
||||||
n.GitHub = &github.GitHub{}
|
|
||||||
}
|
|
||||||
if err := n.GitHub.Send(context); err != nil {
|
if err := n.GitHub.Send(context); err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue