Skip to content

Commit

Permalink
Update auto-label-issues.yml
Browse files Browse the repository at this point in the history
More logging.
  • Loading branch information
HammerGS authored Oct 18, 2024
1 parent 2f0b6a3 commit 3843803
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
echo "::debug::Issue Body: $issue_body"
# Extract the severity from the dropdown selection
severity=$(echo "$issue_body" | sed -n 's/.*### Severity \\*\\s*\\n\\n\\(.*\\)/\\1/p' | sed 's/^- //')
severity=$(echo "$issue_body" | sed -n 's/.*Severity \*\\s*\\n\\n\\(.*\\)/\\1/p' | sed 's/^- //')
# Log the regex extraction process
echo "::debug::Regex pattern used: 's/.*### Severity \\*\\s*\\n\\n\\(.*\\)/\\1/p'"
echo "::debug::Severity after first sed: $(echo "$issue_body" | sed -n 's/.*### Severity \\*\\s*\\n\\n\\(.*\\)/\\1/p')"
echo "::debug::Regex pattern used: 's/.*Severity \*\\s*\\n\\n\\(.*\\)/\\1/p'"
echo "::debug::Severity after first sed: $(echo "$issue_body" | sed -n 's/.*Severity \*\\s*\\n\\n\\(.*\\)/\\1/p')"
echo "::debug::Severity after second sed: $severity"
echo "::debug::Detected Severity: $severity"
Expand Down

0 comments on commit 3843803

Please sign in to comment.