mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01: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
 | 
			
		||||
        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"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user