self.edit

in lib/release_tools/slack/bookmark.rb [19:41]


      def self.edit(channel:, bookmark:, link:, title: nil)
        raise NoCredentialsError unless slack_token.present?

        params = {
          channel_id: channel,
          bookmark_id: bookmark
        }

        params[:link] = link if link
        params[:title] = title if title

        logger.trace(__method__, params)

        return {} if SharedStatus.dry_run?

        if Feature.enabled?(:slack_down)
          logger.warn("Not attempting to call Slack API because FF 'slack_down' is enabled", params: params)
          return {}
        end

        post(EDIT_URL, params)
      end