diff options
author | Christopher Brickley <brickley@gmail.com> | 2014-10-24 08:56:12 -0400 |
---|---|---|
committer | Christopher Brickley <brickley@gmail.com> | 2014-10-24 08:56:12 -0400 |
commit | 3794111460e8f69a69bfaacade2978fe89644270 (patch) | |
tree | e6361647a56f6d8df3b9d6b019d7627fb5eb7ad8 /models | |
parent | d7ea49b9f52a065dc34933ecc056e3b6b6b0fad9 (diff) | |
download | gitea-3794111460e8f69a69bfaacade2978fe89644270.tar.gz gitea-3794111460e8f69a69bfaacade2978fe89644270.zip |
update slack hook to use new format
Diffstat (limited to 'models')
-rw-r--r-- | models/slack.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/models/slack.go b/models/slack.go index 3dd40759af..0b1b579ff0 100644 --- a/models/slack.go +++ b/models/slack.go @@ -16,8 +16,6 @@ const ( ) type Slack struct { - Domain string `json:"domain"` - Token string `json:"token"` Channel string `json:"channel"` } @@ -36,14 +34,6 @@ type SlackAttachment struct { Text string `json:"text"` } -func GetSlackURL(domain string, token string) string { - return fmt.Sprintf( - "https://%s.slack.com/services/hooks/incoming-webhook?token=%s", - domain, - token, - ) -} - func (p SlackPayload) GetJSONPayload() ([]byte, error) { data, err := json.Marshal(p) if err != nil { |