Skip to content

Commit 6d1b266

Browse files
authored
filter severity: labels in pr promotion automation (#21926)
when promoting pull-requests from internal forks, filter `severity:`
1 parent d269839 commit 6d1b266

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/promote-pull-request.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ jobs:
627627
upstream_number=$(jq --exit-status --raw-output '.number | select(type == "number")' <<< "$upstream_pull_request")
628628
629629
# Automation controls and triage labels belong to the source repository.
630-
upstream_labels=$(jq '{labels: [.labels[].name | select(test("^(bot|priority|size|risk):") | not)]}' <<< "$source_pull_request")
630+
upstream_labels=$(jq '{labels: [.labels[].name | select(test("^(bot|priority|size|risk|severity):") | not)]}' <<< "$source_pull_request")
631631
if jq --exit-status '.labels | length > 0' <<< "$upstream_labels" > /dev/null; then
632632
gh api \
633633
--method POST \

0 commit comments

Comments
 (0)