File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 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
5151 application_private_key : ${{ secrets.TRUSTIFICATION_BOT_KEY }}
5252
5353 - name : Cherry-pick
54- env :
55- GH_TOKEN : ${{ steps.get_workflow_token.outputs.token }}
56- run : |
57- BRANCH_NAME="cherry-pick-pr${{ github.event.number }}-${{ matrix.branch }}"
58- git config --global user.email "noreply@github.com"
59- git config --global user.name "Cherry Picker"
60- git checkout -b ${BRANCH_NAME}
61- git cherry-pick -s ${{ github.sha }}
62- git push origin ${BRANCH_NAME}
63- gh pr create --base ${{ matrix.branch }} --fill
54+ uses : korthout/backport-action@v3
55+ with :
56+ github_token : ${{ steps.get_workflow_token.outputs.token }}
57+ pull_title : ' ${pull_title} [Backport ${target_branch}]'
You can’t perform that action at this time.
0 commit comments