phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
374 stars 74 forks source link

slack_deploy_user deprecated ? #64

Closed JochenFromm closed 7 years ago

JochenFromm commented 7 years ago

A recent commit seems to indicate that the parameter slack_deploy_useris now deprecated. Is this correct? Then this code which was previously recommended to set custom fields probably no longer works as well, what would be the right format?

set :slack_fields_updated,
   [
     {
       title: "Project",
       value: "<https://github.com/XXXXX/#{fetch(:application)}|#{fetch(:application)}>",
       short: true
     },
     {
       title: "Environment",
       value: fetch(:stage),
       short: true
     },
     {
       title: "Deployer",
       value: fetch(:slack_deploy_user),
       short: true
     },
     {
       title: "Revision",
       value: "<https://github.com/XXXXX/#{fetch(:application)}/commit/#{fetch(:slack_revision)}|#{fetch(:slack_revision)[0..6]}>",
       short: true
     }
   ]
phallstrom commented 7 years ago

You'll want to modify what you've got into the new way documented here: https://github.com/phallstrom/slackistrano#customizing-the-messaging

You can start with the DeprecatedMessaging class if you want to build from that, but might be easier to just start over. Note this requires the new version of the gem.