Fix myself
This commit is contained in:
parent
20cfb8a28c
commit
d1df8c2853
2 changed files with 10 additions and 0 deletions
2
go.mod
2
go.mod
|
@ -1,5 +1,7 @@
|
|||
module github.com/matrix-org/rageshake
|
||||
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
cloud.google.com/go v0.0.0-20170406015231-675fad27ef35
|
||||
github.com/golang/protobuf v0.0.0-20170331031902-2bba0603135d
|
||||
|
|
|
@ -479,6 +479,10 @@ func (s *submitServer) saveReport(ctx context.Context, p parsedPayload, reportDi
|
|||
}
|
||||
|
||||
func (s *submitServer) submitGithubIssue(ctx context.Context, p parsedPayload, listingURL string, resp *submitResponse) error {
|
||||
if s.ghClient == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// submit a github issue
|
||||
ghProj := s.cfg.GithubProjectMappings[p.AppName]
|
||||
if ghProj == "" {
|
||||
|
@ -506,6 +510,10 @@ func (s *submitServer) submitGithubIssue(ctx context.Context, p parsedPayload, l
|
|||
}
|
||||
|
||||
func (s *submitServer) submitSlackNotification(p parsedPayload, listingURL string) error {
|
||||
if s.slack == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
slackBuf := fmt.Sprintf(
|
||||
"%s\nApplication: %s\nReport: %s",
|
||||
p.UserText, p.AppName, listingURL,
|
||||
|
|
Reference in a new issue