Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Add template fields to wcloud config.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Aug 17, 2016
1 parent 7e850f8 commit e6876d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/wcloud/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type Deployment struct {
Version string `json:"version"`
Priority int `json:"priority"`
State string `json:"status"`
LogKey string `json:"-"`
}

// Config for the deployment system for a user.
Expand All @@ -26,10 +25,13 @@ type Config struct {

// Globs of files not to change, relative to the route of the repo
ConfigFileBlackList []string `json:"config_file_black_list" yaml:"config_file_black_list"`

CommitMessageTemplate string `json:"commit_message_template" yaml:"commit_message_template"` // See https://golang.org/pkg/text/template/
}

// NotificationConfig describes how to send notifications
type NotificationConfig struct {
SlackWebhookURL string `json:"slack_webhook_url" yaml:"slack_webhook_url"`
SlackUsername string `json:"slack_username" yaml:"slack_username"`
MessageTemplate string `json:"message_template" yaml:"message_template"`
}

0 comments on commit e6876d1

Please sign in to comment.