mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
- Split import version into own task - Add beta field to Version model - Add task to import most recent beta version - Accommodate beta releases in Artifactory downloads - Fix bug in getting proper download files for beta releases - Add ability to delete old beta versions when importing new beta version - Hide release notes link for beta releases - Comment why we don't get old downloads - Add management command to get most recent beta release - Add beta import to boost setup command - Add docs on beta release import - Get newest beta release when importing releases - Add manager method to get most recent beta release - Skip a couple failing tests after confirming behavior is working as expected
28 lines
958 B
Python
28 lines
958 B
Python
import djclick as click
|
|
|
|
from versions.tasks import import_most_recent_beta_release
|
|
|
|
|
|
@click.command()
|
|
@click.option(
|
|
"--delete-versions", is_flag=True, help="Delete all existing beta versions"
|
|
)
|
|
@click.option("--token", is_flag=False, help="Github API token")
|
|
def command(
|
|
delete_versions,
|
|
token,
|
|
):
|
|
"""
|
|
Import the most recent beta release from GitHub.
|
|
|
|
This command will import the most recent beta release from GitHub. If
|
|
--delete-versions is specified, it will delete all existing beta versions
|
|
before importing the most recent beta release.
|
|
|
|
If --token is specified, it will use the specified GitHub API token to
|
|
retrieve the release data. Otherwise, it will use the settings value.
|
|
"""
|
|
click.secho("Importing most recent beta release...", fg="green")
|
|
import_most_recent_beta_release(delete_old=delete_versions, token=token)
|
|
click.secho("Finished importing most recent beta release.", fg="green")
|