File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 body="${{ github.event.issue.body }}"
2929
3030 # Extract dropdown value and scenario file (if typed)
31- challenge_type=$(echo "$body" | grep -A2 "challenge_type" | grep 'value:' | sed 's/^[[:space:]]*value:[[:space:]]*//' | head -n1)
32-
33- if [ -z "$challenge_type" ]; then
34- challenge_type=$(echo "$body" | grep -A1 "What type of challenge do you want?" | tail -n1 | tr -d '\r')
35- fi
36-
37- # Extract scenario_file (input)
38- scenario_file=$(echo "$body" | grep -A2 "scenario_file" | grep 'value:' | sed 's/^[[:space:]]*value:[[:space:]]*//')
39-
40- if [ -z "$scenario_file" ]; then
41- scenario_file=$(echo "$body" | grep -A1 "Scenario file name" | tail -n1 | tr -d '\r')
42- fi
31+ challenge_type=$(echo "$body" | grep -A1 "challenge type" | tail -n1 | tr -d '\r')
32+ scenario_file=$(echo "$body" | grep -A1 "Scenario file name" | tail -n1 | tr -d '\r')
4333
4434 # Set fallback defaults
4535 fallback_code="code_scenario.rs"
You can’t perform that action at this time.
0 commit comments