From 86bf96daff9e01cc5232b949183e243f0493fb14 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 24 Jun 2025 21:25:44 +0200 Subject: [PATCH] Automatically add "backport" label to dev tool changes --- .github/boring-cyborg.yml | 18 ++++++++++++++++++ dev/README_RELEASE_AIRFLOW.md | 6 ------ .../commands/minor_release_command.py | 6 ++++++ 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/boring-cyborg.yml b/.github/boring-cyborg.yml index 484cfb333d047..9c5a437d3e07b 100644 --- a/.github/boring-cyborg.yml +++ b/.github/boring-cyborg.yml @@ -332,6 +332,24 @@ labelPRBasedOnFilePath: - .rat-excludes - .readthedocs.yml + # This should be copy of the "area:dev-tools" above and should be updated when we switch maintenance branch + backport-to-v3-0-test: + - scripts/**/* + - dev/**/* + - .github/**/* + - Dockerfile.ci + - CONTRIBUTING.rst + - contributing-docs/**/* + - yamllint-config.yml + - .asf.yaml + - .bash_completion + - .dockerignore + - .hadolint.yaml + - .pre-commit-config.yaml + - .rat-excludes + - .readthedocs.yml + + kind:documentation: - airflow-core/docs/**/* - chart/docs/**/* diff --git a/dev/README_RELEASE_AIRFLOW.md b/dev/README_RELEASE_AIRFLOW.md index a5b9266fe76aa..e64b11af80bda 100644 --- a/dev/README_RELEASE_AIRFLOW.md +++ b/dev/README_RELEASE_AIRFLOW.md @@ -293,12 +293,6 @@ export AIRFLOW_REPO_ROOT=$(pwd) uv tool install -e ./dev/breeze ``` -or (if you prefer to use pipx): - -```shell script -pipx install -e ./dev/breeze -``` - - For major/minor version release, run the following commands to create the 'test' and 'stable' branches. ```shell script diff --git a/dev/breeze/src/airflow_breeze/commands/minor_release_command.py b/dev/breeze/src/airflow_breeze/commands/minor_release_command.py index edacafdcd7ae5..7e7ffeb6e60bb 100644 --- a/dev/breeze/src/airflow_breeze/commands/minor_release_command.py +++ b/dev/breeze/src/airflow_breeze/commands/minor_release_command.py @@ -132,6 +132,12 @@ def instruction_update_version_branch(version_branch): required_approving_review_count: 1 """ ) + console_print() + console_print( + "Update name of `backport` label to " + f"backport-to-v{version_branch}-test in .github/boring-cyborg.yml" + ) + console_print() console_print("Once you finish with the above. Commit the changes and make a PR against main") confirm_action("I'm done with the changes. Continue?", abort=True)