maasglobal / maasglobal/serverless-plugin-notification

Feature: Add support for conditional slack notifications

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Use case

It would be great to add built-in support to conditionally send slack notifications. One use case is, send notification only for specific deploys Prod / QA and not dev or feature branches.

Suggested

custom:
  notification:
    deployer: /* Default deployer name*/
    slack:
      enabled: {{self:provider.stage}}

enabled flag is true we perform notification.

Since sendNotification is the sink of all promises might as well put it there. or skip the entire promise chaining.

Also thanks for this plugin. 🙏

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in index.js at the sendNotification sink linked by the issue, then trace how the Slack notification configuration is read. Confirm how the suggested enabled value should control notifications for different Serverless stages, and verify that enabled notifications still send while disabled ones do not.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.