This is an automated email from the ASF dual-hosted git repository.
bugraoz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new f8321609df8 Move Cherry Picker CLI to main dev/README (#64546)
f8321609df8 is described below
commit f8321609df8f950f5eb646e59bc5552295c256c1
Author: Bugra Ozturk <[email protected]>
AuthorDate: Wed Apr 1 22:01:06 2026 +0200
Move Cherry Picker CLI to main dev/README (#64546)
* Move Cherry Picker CLI to main README
* Add upstream-remote option
* Mention from the helm branch
* Add reference to main dev/README
---
dev/README.md | 68 ++++++++++++++++++++++++++++++++++++++++++-
dev/README_AIRFLOW3_DEV.md | 59 +------------------------------------
dev/README_HELM_CHART2_DEV.md | 2 ++
3 files changed, 70 insertions(+), 59 deletions(-)
diff --git a/dev/README.md b/dev/README.md
index d55a766a819..37e70b1a6a2 100644
--- a/dev/README.md
+++ b/dev/README.md
@@ -29,6 +29,7 @@
- [Configure PyPI uploads](#configure-pypi-uploads)
- [Setup and authorize GitHub client](#setup-and-authorize-github-client)
- [Hardware used to prepare and verify the
packages](#hardware-used-to-prepare-and-verify-the-packages)
+- [How to backport PR with `cherry-picker`
CLI](#how-to-backport-pr-with-cherry-picker-cli)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -101,7 +102,7 @@ There are also convenience packages released as
"apache-airflow-providers"separa
And available in PyPI:
[PyPI query for backport
providers](https://pypi.org/search/?q=apache-airflow-backport-providers).
-Note that Backport Providers for Airflow 1.10.* series are not released any
more. The last release
+Note that Backport Providers for Airflow 1.10.* series are not released
anymore. The last release
of Backport Providers was done on March 17, 2021.
Detailed instruction of releasing provider distributions can be found in the
@@ -204,3 +205,68 @@ by the committer acting as release manager. While strictly
speaking, releases mu
on hardware owned and controlled by the committer, for practical reasons it's
best if the packages are
prepared using such hardware. More information can be found in this
[FAQ](http://www.apache.org/legal/release-policy.html#owned-controlled-hardware)
+
+# How to backport PR with `cherry-picker` CLI
+
+Backporting via CLI might be more convenient for some users. Also, it is
necessary if you want to backport
+PR that has conflicts. It also allows to backport commit to multiple branches
in the same command.
+
+To backport PRs to any branch (for example: `v2-11-test`, `v3-2-test` or
`chart/v1-2x-test`), you can use the following command:
+
+It's easiest to install it (and keep cherry-picker up-to-date) using `uv tool`:
+
+```bash
+uv tool install cherry-picker
+````
+
+And upgrade it with:
+
+```bash
+uv tool upgrade cherry-picker
+```
+
+Then, in order to backport a commit to a branch, you can use the following
command:
+
+```bash
+cherry_picker COMMIT_SHA BRANCH_NAME1 [BRANCH_NAME2 ...]
+```
+
+If you are using your fork repository while keeping Airflow repository as
remote (i.e. `apache`), please use
+
+```bash
+cherry_picker COMMIT_SHA BRANCH_NAME1 [BRANCH_NAME2 ...] --upstream-remote
[REMOTE_REPOSITORY_NAME]
+```
+
+This will create a new branch with the cherry-picked commit and open a PR
against the target branch in
+your browser.
+
+If the GH_AUTH environment variable is set in your command line, the
cherry-picker automatically creates a new pull request when there are no
conflicts. To set GH_AUTH, use the token from your GitHub repository.
+
+To set GH_AUTH run this:
+
+```bash
+export GH_AUTH={token}
+```
+
+Sometimes it might result with conflict. In such case, you should manually
resolve the conflicts.
+Some IDEs like IntelliJ has a fantastic conflict resolution tool - just follow
`Git -> Resolve conflicts`
+menu after you get the conflict. But you can also resolve the conflicts
manually; see [How conflicts are
+are
presented](https://git-scm.com/docs/git-merge#_how_conflicts_are_presented) and
+[How to resolve
conflicts](https://git-scm.com/docs/git-merge#_how_to_resolve_conflicts) for
more details.
+
+```bash
+cherry_picker --status # Should show if all conflicts are resolved
+cherry_picker --continue # Should continue cherry-picking process
+```
+
+> [!WARNING]
+> Sometimes, when you stop cherry-picking process in the middle, you might end
up with your repo in a bad
+> state and cherry-picker might print this message:
+>
+> > 🐍 🍒 ⛏
+> >
+> > You're not inside a cpython repo right now! 🙅
+>
+> You should then run `cherry-picker --abort` to clean up the mess and start
over. If that does not work
+> you might need to run `git config --local --remove-section cherry-picker` to
clean up the configuration
+> stored in `.git/config`.
diff --git a/dev/README_AIRFLOW3_DEV.md b/dev/README_AIRFLOW3_DEV.md
index dbd7e919984..7ac1c58105d 100644
--- a/dev/README_AIRFLOW3_DEV.md
+++ b/dev/README_AIRFLOW3_DEV.md
@@ -252,64 +252,7 @@ The action should create a new PR with the cherry-picked
commit and add a commen
successful (or when it fails). If automatic backporting fails because of
conflicts, you have to revert to
manual backporting using `cherry-picker` CLI.
-## How to backport PR with `cherry-picker` CLI
-
-Backporting via CLI might be more convenient for some users. Also it is
necessary if you want to backport
-PR that has conflicts. It also allows to backport commit to multiple branches
in the same command.
-
-To backport PRs to any branch (for example: v2-11-test), you can use the
following command:
-
-It's easiest to install it (and keep cherry-picker up-to-date) using `uv tool`:
-
-```bash
-uv tool install cherry-picker
-````
-
-And upgrade it with:
-
-```bash
-uv tool upgrade cherry-picker
-```
-
-Then, in order to backport a commit to a branch, you can use the following
command:
-
-```bash
-cherry_picker COMMIT_SHA BRANCH_NAME1 [BRANCH_NAME2 ...]
-```
-
-This will create a new branch with the cherry-picked commit and open a PR
against the target branch in
-your browser.
-
-If the GH_AUTH environment variable is set in your command line, the
cherry-picker automatically creates a new pull request when there are no
conflicts. To set GH_AUTH, use the token from your GitHub repository.
-
-To set GH_AUTH run this:
-
-```bash
-export GH_AUTH={token}
-```
-
-Sometimes it might result with conflict. In such case, you should manually
resolve the conflicts.
-Some IDEs like IntelliJ has a fantastic conflict resolution tool - just follow
`Git -> Resolve conflicts`
-menu after you get the conflict. But you can also resolve the conflicts
manually; see [How conflicts are
-are
presented](https://git-scm.com/docs/git-merge#_how_conflicts_are_presented) and
-[How to resolve
conflicts](https://git-scm.com/docs/git-merge#_how_to_resolve_conflicts) for
more details.
-
-```bash
-cherry_picker --status # Should show if all conflicts are resolved
-cherry_picker --continue # Should continue cherry-picking process
-```
-
-> [!WARNING]
-> Sometimes, when you stop cherry-picking process in the middle, you might end
up with your repo in a bad
-> state and cherry-picker might print this message:
->
-> > 🐍 🍒 ⛏
-> >
-> > You're not inside a cpython repo right now! 🙅
->
-> You should then run `cherry-picker --abort` to clean up the mess and start
over. If that does not work
-> you might need to run `git config --local --remove-section cherry-picker` to
clean up the configuration
-> stored in `.git/config`.
+## [How to backport PR with `cherry-picker`
CLI](README.md#how-to-backport-pr-with-cherry-picker-cli)
## Merging PRs for Airflow 2.11.x
diff --git a/dev/README_HELM_CHART2_DEV.md b/dev/README_HELM_CHART2_DEV.md
index 5c5e0b59583..afa92659772 100644
--- a/dev/README_HELM_CHART2_DEV.md
+++ b/dev/README_HELM_CHART2_DEV.md
@@ -28,6 +28,7 @@
- [Committers / PMCs](#committers--pmcs)
- [Merging PRs targeted for Airflow Helm Chart
2.X](#merging-prs-targeted-for-airflow-helm-chart-2x)
- [What do we backport to `chart/v1-2x-test`
branch?](#what-do-we-backport-to-chartv1-2x-test-branch)
+ - [How to backport PR with `cherry-picker`
CLI](#how-to-backport-pr-with-cherry-picker-cli)
- [Merging PRs for Airflow Chart 1.2x.x](#merging-prs-for-airflow-chart-12xx)
- [Milestones for PR](#milestones-for-pr)
- [Set Airflow Helm Chart 2.0.0](#set-airflow-helm-chart-200)
@@ -109,6 +110,7 @@ We will not backport new features or refactorings.
* **Refactorings in active areas** do not cherry-pick.
* **New features** do not cherry-pick.
+## [How to backport PR with `cherry-picker`
CLI](README.md#how-to-backport-pr-with-cherry-picker-cli)
## Merging PRs for Airflow Chart 1.2x.x