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.
poetry run ./manage.py notifications --action=<action> [options]
The command supports four primary actions:
new_issues
- Generates a summary of new issues.
issue_report
- Creates issue reports with multiple execution modes:
- Report for a specific issue
- Report for all pending issues
- Creates issue reports with multiple execution modes:
summary
- Runs a checkout summary report for trees listed in summary-signup.yaml.
fake_report
- Generates a fake report (for testing email send).
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 |
Edit the recipients.yaml and send a PR to the dashboard.
Use the git tree name reported by the Web Dashboard.
Edit the summary-signup.yaml and send a PR to the dashboard.
Use the git tree name reported by the Web Dashboard