File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 59
59
# Check if PR_BODY matches the provided pattern using Bash's =~ regex operator
60
60
if [[ "$PR_BODY" =~ $pattern ]]; then
61
61
echo "matched for this pattern $pattern"
62
-
63
- # # If there is a match, Bash populates the BASH_REMATCH array with the results. stores the entire matched portion of the string
64
- # issue_num=$(echo "${BASH_REMATCH[0]}" | grep -oE "[0-9]+" | tr -d '\r\n')
65
62
66
63
issue_num=$(echo "$PR_BODY" | grep -oE "$pattern" | grep -oE "[0-9]+")
67
64
@@ -107,7 +104,7 @@ jobs:
107
104
--header "authorization : Bearer ${{ secrets.GH_PR_VALIDATOR_TOKEN }}" \
108
105
" $issue_api_url" | jq '.state'|tr -d \")
109
106
# Check if the issue is still open.
110
- if [[ "$issue_status" -eq open ]]; then
107
+ if [[ "$issue_status" == open ]]; then
111
108
echo "Issue # $issue_num is opened."
112
109
# Remove the 'Issue-verification-failed' label (if present) and add 'Ready-to-Review'.
113
110
gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed"
You can’t perform that action at this time.
0 commit comments