Skip to content

Commit f6502b6

Browse files
✨ use 'backport' instead of 'cherry-pick' (#33)
This change will apply to both the cherry-pick.yaml and the config.yaml so the change is consistent Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent 0db1330 commit f6502b6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/cherry-pick.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
const labels = issue.labels.map(label => label.name);
2424
console.log(`Labels: ${labels}`);
2525
26-
const branches = labels.filter(label => label.startsWith('cherry-pick/'))
27-
.map(label => label.substr(12));
26+
const branches = labels.filter(label => label.startsWith('backport '))
27+
.map(label => label.substr(9));
2828
console.log(`Branches: ${branches}`);
2929
3030
return branches
@@ -54,6 +54,4 @@ jobs:
5454
uses: korthout/backport-action@v3
5555
with:
5656
github_token: ${{ steps.get_workflow_token.outputs.token }}
57-
label_pattern: >-
58-
^cherry-pick\/([^ ]+)$
5957
pull_title: '${pull_title} [Backport ${target_branch}]'

pkg/config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ labels:
9696
# CherryPick
9797
- color: fef2a0
9898
description: This PR should be cherry-picked to release/0.2.z branch.
99-
name: cherry-pick/release/0.2.z
99+
name: backport release/0.2.z
100100

101101
# Milestones
102102
# List of milestones, and their state, that should exist in the specified repositories.

0 commit comments

Comments
 (0)