diff --git a/configuration/configuration.go b/configuration/configuration.go index b030660..8d78a63 100644 --- a/configuration/configuration.go +++ b/configuration/configuration.go @@ -9,7 +9,7 @@ type Config struct { SlackWebhook string SlackTitle string SlackMessage string - SlackIconUrl string + SlackIconURL string SlackChannel string SlackColor string SlackUsername string @@ -45,7 +45,7 @@ func (config *Config) Init() error { } // Setting unrequired environment variables - config.SlackIconUrl = os.Getenv("SLACK_ICON") + config.SlackIconURL = os.Getenv("SLACK_ICON") config.SlackChannel = os.Getenv("SLACK_CHANNEL") config.SlackColor = os.Getenv("SLACK_COLOR") config.SlackUsername = os.Getenv("SLACK_USERNAME") diff --git a/deployment/git-actions/template_git_action_slack_notification.yml b/deployment/git-actions/template_git_action_slack_notification.yml index 198ff21..e7529f8 100644 --- a/deployment/git-actions/template_git_action_slack_notification.yml +++ b/deployment/git-actions/template_git_action_slack_notification.yml @@ -21,4 +21,4 @@ jobs: SLACK_MESSAGE: Demo'ing the Slack Notification SLACK_TITLE: Slack Notification Demo SLACK_USERNAME: demo-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} diff --git a/main.go b/main.go index bf28f7a..fef97e9 100644 --- a/main.go +++ b/main.go @@ -1,12 +1,12 @@ package main import ( - "github.com/pkg/errors" - "github.com/senzing/git-action-slack-notification/configuration" - "log" "bytes" "encoding/json" "fmt" + "github.com/pkg/errors" + "github.com/senzing/git-action-slack-notification/configuration" + "log" "net/http" )