Add management command to run all necessary tasks after a release. (#1562)

This commit is contained in:
Brian Perrett
2024-12-20 13:01:33 -08:00
committed by GitHub
parent cf21a46cf4
commit a08c01617a
8 changed files with 239 additions and 35 deletions

View File

@@ -15,6 +15,7 @@
- [`import_beta_release`](#import_beta_release)
- [`sync_mailinglist_stats`](#sync_mailinglist_stats)
- [`update_library_version_dependencies`](#update_library_version_dependencies)
- [`release_tasks`](#release_tasks)
## `boost_setup`
@@ -300,3 +301,20 @@ If both the `--release` and the `--library-name` are passed, the command will lo
| `--token` | string | Pass a GitHub API token. If not passed, will use the value in `settings.GITHUB_TOKEN`. |
| `--clean` | bool | If passed, existing dependencies in the M2M will be cleared before reinserting them. |
| `--owner` | string | The repo owner. Defaults to "boostorg", which is correct in most cases but can be useful to specify for testing. |
## `release_tasks`
**Purpose**: Execute a chain of commands which are necessary to run during a release. Imports new versions, beta versions, slack messages, github issues, commits, authors, maintainers, etc... Inspect the management command to see exactly which commands are being run.
**Example**
```bash
./manage.py release_tasks
```
**Options**
| Options | Format | Description |
|----------------------|--------|--------------------------------------------------------------|
| `--user_id` | int | If passed, the user with this ID will receive email notifications when this task is started and finished, or if the task raises and exception. |