Skip to content

Commit 6a94111

Browse files
authored
Add 9.0.3xx to the branch lockdown labeler (#48774)
2 parents 1997093 + d25d175 commit 6a94111

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/add-lockdown-label.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ jobs:
5050
if [[ "$current_date" > "$third_tuesday" || "$current_date" < "$first_tuesday" ]]; then
5151
echo "Within the label period. Checking if the branch matches..."
5252
53-
# Get all open PRs targeting branches release/8* and release/9* excluding release/9.0.3xx
53+
# Get all open PRs targeting branches release/8* and release/9*
5454
echo "Running gh pr list query..."
5555
prs=$(gh pr list --state open --limit 200 --json number,baseRefName,author,labels)
5656
echo "Total PRs Count: $(echo "$prs" | jq length)"
5757
echo "PRs JSON: $prs"
5858
59-
echo "Filtering PRs targeting release/8* and release/9* excluding release/9.0.3xx..."
60-
prs_targeting_branches=$(echo "$prs" | jq '[.[] | select(.baseRefName | test("^release/[89].*")) | select(.baseRefName | test("^release/9.0.3xx") | not)]')
59+
echo "Filtering PRs targeting release/8* and release/9*"
60+
# when the next feature band branch gets created, we'll want to add a filter here for a few months while the feature band previews are ongoing
61+
# | select(.baseRefName | test("^release/10.0.2xx") | not)
62+
prs_targeting_branches=$(echo "$prs" | jq '[.[] | select(.baseRefName | test("^release/[89].*"))]')
6163
echo "Count of PRs targeting specific branches: $(echo "$prs_targeting_branches" | jq length)"
6264
6365
echo "Filtering PRs without Branch Lockdown label..."

0 commit comments

Comments
 (0)