1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

chore: AI flag cleanup better support advanced flag names (#10396)

https://linear.app/unleash/issue/2-3709/improve-support-for-advanced-flag-names-in-ai-flag-cleanup

Improves support for advanced flag names in AI flag cleanup.

This is something I noticed when it tried to run against
https://github.com/Unleash/unleash/issues/10395 — The dot (.) broke the
previous logic.
This commit is contained in:
Nuno Góis 2025-07-22 17:39:16 +01:00 committed by GitHub
parent f363a1eba7
commit 65ea41d601
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,11 +85,10 @@ jobs:
- name: Extract flag name
id: extract_flag
run: |
read -r TITLE <<'EOF'
${{ fromJson(steps.get_issue.outputs.result).title }}
EOF
TITLE="${{ fromJson(steps.get_issue.outputs.result).title }}"
if [[ "$TITLE" =~ Flag[[:space:]]([a-zA-Z0-9_-]+)[[:space:]]marked ]]; then
if [[ $TITLE =~ Flag[[:space:]]+([^[:space:]]+)[[:space:]]+marked ]]; then
FLAG="${BASH_REMATCH[1]}"
echo "flag-name=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT
else
MSG="Could not extract flag name from title: $TITLE"