Skip to content

Files

Latest commit

d70d4cf · May 16, 2025

History

History
59 lines (38 loc) · 2.3 KB

notifications.md

File metadata and controls

59 lines (38 loc) · 2.3 KB

Notifications Management Command

Overview

The notifications management command provides a flexible tool for generating and sending various types of email notifications related to issue reporting and summaries. It supports multiple actions and offers extensive configuration options.

Command Syntax

poetry run ./manage.py notifications --action=<action> [options]

If you are running the project in a docker container, you should add a docker compose run --rm backend to get a container of the backend running separately in order to use environment variables and existing connections to the database and be able to send notifications.

Actions

The command supports four primary actions:

  1. new_issues
    • Generates a summary of new issues.
  2. issue_report
    • Creates issue reports with multiple execution modes:
      • Report for a specific issue
      • Report for all pending issues
  3. summary
  4. fake_report
    • Generates a fake report (for testing email send).

Email Management Options

Option Description Type Default
--add-mailing-lists Include community mailing lists in recipients Flag False
--ignore-recipients Bypass recipients.yaml file Flag False
--send Send email after generating report Flag False
--to Specify direct recipient email String None
--cc Specify CC recipient emails a "email1, email2" list String None
--yes Send email without confirmation Flag False
--credentials-file Path to Gmail API credentials file. You only need it to generate the gmail_api_token.json file String None

Adding yourself to recipients

Edit the recipients.yaml and send a PR to the dashboard.

Use the git tree name reported by the Web Dashboard.

Signup tree for checkout summary

Edit the summary-signup.yaml and send a PR to the dashboard.

Use the git tree name reported by the Web Dashboard