Skip to content

Commit

Permalink
[infra] Support other repo with cherry-pick workflow (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Nov 17, 2024
1 parent 158fe53 commit 5a62ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/prs/detectTargetBranch.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = async ({ core, context, github }) => {
(label) => label !== 'needs cherry-pick' && !vBranchRegex.test(label),
);

if (vBranchRegex.test(pr.head_ref)) {
if (vBranchRegex.test(pr.head_ref) || pr.head_ref === 'next') {
// the branch this is coming from is a version branch, so one of the targets should be master
core.info('>>> Head Ref is a version branch. Adding `master` as target');
targetLabels.push('master');
Expand Down

0 comments on commit 5a62ae5

Please sign in to comment.