Skip to content

Commit d254e67

Browse files
committed
Label new failures automatically
1 parent 81796fe commit d254e67

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/verify-new-library-version-compatibility.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,22 @@ jobs:
258258
EOF
259259
260260
echo "Creating a new issue"
261+
262+
# Choose assignee based on the label:
263+
# - "fails-native-image-build": assign to @vjovanov
264+
# - Others: assign to @kimeta
265+
ASSIGNEE="kimeta"
266+
if [ "$FAILURE_LABEL" = "fails-native-image-build" ]; then
267+
ASSIGNEE="vjovanov"
268+
fi
269+
261270
gh issue create \
262271
--repo "$REPO" \
263272
--title "$TITLE" \
264273
--body-file "$BODY_FILE" \
265274
--label "library-unsupported-version" \
266-
--label "$FAILURE_LABEL"
267-
275+
--label "$FAILURE_LABEL" \
276+
--assignee "$ASSIGNEE"
268277
269278
rm "$BODY_FILE"
270279

0 commit comments

Comments
 (0)