Skip to content

Commit

Permalink
Update auto-label-issues.yml
Browse files Browse the repository at this point in the history
New version with better logging.
  • Loading branch information
HammerGS authored Oct 18, 2024
1 parent 5d1f35f commit c2519d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/auto-label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ jobs:
echo "Checking issue body for severity..."
issue_body=$(jq -r '.issue.body' "$GITHUB_EVENT_PATH")
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/^- //')
# 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::Severity after second sed: $severity"
echo "::debug::Detected Severity: $severity"
case "$severity" in
"Critical (Game-breaking/Crash): The game crashes or a core feature (like saving, loading, or network connection) is completely unusable.")
Expand Down

0 comments on commit c2519d2

Please sign in to comment.