Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/common/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ parse_branch_names_from_backport_labels() {
BRANCHES=""

for label in $labels; do
if [[ "$label" =~ ^A4-backport-stable[0-9]{4}$ ]]; then
if [[ "$label" =~ ^A4-backport-(stable|unstable)[0-9]{4}$ ]]; then
branch_name=$(sed 's/A4-backport-//' <<< "$label")
BRANCHES+=" ${branch_name}"
fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ jobs:
fi

# Only enforce SemVer restrictions for backports targeting stable branches
if [[ "$BASE_BRANCH" != stable* ]]; then
echo "ℹ️ Branch '$BASE_BRANCH' is not a stable branch. Skipping SemVer backport-specific enforcements."
if [[ "$BASE_BRANCH" != stable* && "$BASE_BRANCH" != unstable* ]]; then
echo "ℹ️ Branch '$BASE_BRANCH' is not a (un)stable branch. Skipping SemVer backport-specific enforcements."
exit 0
fi

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/command-backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
LABELS=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')

if echo "$LABELS" | grep -q '^A4-backport-stable'; then
if echo "$LABELS" | grep -qE '^A4-backport-(stable|unstable)'; then
echo "found=true" >> $GITHUB_OUTPUT
readarray -t labels_array <<< "$LABELS"
echo "LABELS=${labels_array[@]}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
"conflict_resolution": "draft_commit_conflicts"
}
copy_assignees: true
label_pattern: ^A4-backport-stable
label_pattern: ^A4-backport-(stable|unstable)

- name: Label Backports
if: ${{ steps.backport.outputs.created_pull_numbers != '' }}
Expand Down
Loading