You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This directory contains GitHub Actions workflows for the React Native Windows re
8
8
9
9
**File:**`cherry-pick-commit.yml`
10
10
11
-
Cherry-picks a specific commit into a target branch.
11
+
Cherry-picks a specific commit into a target branch. You can choose to either apply the cherry-pick directly to the target branch or create a Pull Request for review.
12
12
13
13
**Usage:**
14
14
@@ -18,14 +18,23 @@ Cherry-picks a specific commit into a target branch.
18
18
4. Enter the required inputs:
19
19
-**Commit SHA or ID**: The full commit hash or short SHA of the commit to cherry-pick
20
20
-**Target branch name**: The branch where you want to cherry-pick the commit
21
+
-**Create a PR instead of direct cherry-pick**: Check this box to create a Pull Request instead of directly applying the cherry-pick
22
+
23
+
**Workflow Options:**
24
+
25
+
-**Direct Cherry-pick** (checkbox unchecked): The commit will be cherry-picked and pushed directly to the target branch
26
+
-**Pull Request** (checkbox checked): Creates a new branch with the cherry-picked commit and opens a Pull Request to the target branch for review
- The workflow will fail if there are merge conflicts during cherry-pick
30
38
- If conflicts occur, you'll need to resolve them manually
31
-
- The commit will be pushed directly to the target branch after successful cherry-pick
39
+
- When creating a PR, the branch name will be automatically generated as `cherry-pick-<commit-id>-to-<target-branch>`, where `<commit-id>` is the full commit hash (e.g., `cherry-pick-d1a95351e5203a6c0651cf73885cd7ea99e7d2b9-to-0.79-stable`). This may result in long branch names.
40
+
- When creating a PR, the title and description will include details about the original commit and target branch
0 commit comments