mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +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:
parent
f363a1eba7
commit
65ea41d601
7
.github/workflows/ai-flag-cleanup-pr.yml
vendored
7
.github/workflows/ai-flag-cleanup-pr.yml
vendored
@ -85,11 +85,10 @@ jobs:
|
|||||||
- name: Extract flag name
|
- name: Extract flag name
|
||||||
id: extract_flag
|
id: extract_flag
|
||||||
run: |
|
run: |
|
||||||
read -r TITLE <<'EOF'
|
TITLE="${{ fromJson(steps.get_issue.outputs.result).title }}"
|
||||||
${{ fromJson(steps.get_issue.outputs.result).title }}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
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
|
echo "flag-name=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
MSG="Could not extract flag name from title: $TITLE"
|
MSG="Could not extract flag name from title: $TITLE"
|
||||||
|
Loading…
Reference in New Issue
Block a user