Skip to content

Slack Send V1.27.0

Latest
Compare
Choose a tag to compare
@zimeg zimeg released this 28 Aug 20:00
· 3 commits to main since this release
37ebaef

What's changed

This release introduces an optional payload-delimiter parameter for flattening nested objects with a customized delimiter before the payload is sent to Slack Workflow Builder when using workflow webhook triggers.

  - name: Send a custom flattened payload
    uses: slackapi/slack-github-action@v1.27.0
+   with:
+     payload-delimiter: "_"
    env:
      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

Setting this value to an underscore (_) is recommended when using nested inputs within Workflow Builder to match expected input formats of Workflow Builder, but the actual value can be changed to something else! This "flattening" behavior did exist prior to this version, but used a period (.) which is not valid for webook inputs in Workflow Builder.

Flattening example

The resulting output of flattened objects is not always clear, but the following can hopefully serve as a quick reference as well as these specs when using _ as the delimiter:

Input:

{
    "apples": "tree",
    "bananas": {
        "truthiness": true
    }
}

Output:

{
    "apples": "tree",
    "bananas_truthiness": "true"
}

Notice that bananas_truthiness is also stringified in this process, as part of updating values to match the expected inputs of Workflow Builder!

Changes

In addition to the changes above, the following lists all of the changes since the prior version with the complete changelog changes found here: v1.26.0...v1.27.0

🎁 Enhancements

  • Make payload delimiter configurable in #281 - thanks @rzumer!

📚 Documentation

🔒 Security

🧪 Maintenance

  • Add codecov coverage uploading in #308 - thanks @filmaj!
  • ci(test): run integration tests in a single sequential environment in #310 - thanks @zimeg!

📦 Dependencies

  • Bump eslint-plugin-jsdoc from 48.2.2 to 48.2.3 in #305 - thanks @dependabot!
  • Bump @slack/web-api from 7.0.2 to 7.0.4 in #307 - thanks @dependabot!
  • build(deps-dev): bump sinon from 17.0.1 to 18.0.0 in #313 - thanks @dependabot!
  • build(deps-dev): bump eslint-plugin-jsdoc from 48.2.3 to 48.2.7 in #314 - thanks @dependabot!
  • build(deps): bump axios from 1.6.8 to 1.7.2 in #315 - thanks @dependabot!
  • build(deps): bump codecov/codecov-action from 4.0.1 to 4.4.1 in #316 - thanks @dependabot!
  • build(deps-dev): bump nyc from 15.1.0 to 17.0.0 in #319 - thanks @dependabot!
  • build(deps-dev): bump eslint-plugin-jsdoc from 48.2.7 to 48.5.0 in #321 - thanks @dependabot!
  • build(deps-dev): bump mocha from 10.4.0 to 10.5.2 in #322 - thanks @dependabot!
  • build(deps): bump codecov/codecov-action from 4.4.1 to 4.5.0 in #324 - thanks @dependabot!
  • build(deps): bump @slack/web-api from 7.0.4 to 7.2.0 in #323 - thanks @dependabot!
  • build(deps): bump https-proxy-agent from 7.0.4 to 7.0.5 in #320 - thanks @dependabot!
  • build(deps-dev): bump eslint-plugin-jsdoc from 48.5.0 to 48.10.2 in #325 - thanks @dependabot!
  • build(deps-dev): bump chai from 4.4.1 to 4.5.0 in #326 - thanks @dependabot!
  • build(deps): bump @slack/web-api from 7.2.0 to 7.3.2 in #327 - thanks @dependabot!
  • build(deps-dev): bump mocha from 10.5.2 to 10.7.0 in #328 - thanks @dependabot!

🎉 New contributors