Skip to content

Commit 69ed7b5

Browse files
Badal Kumar PrustyBadal Kumar Prusty
authored andcommitted
Refactored after review-2
1 parent 9178790 commit 69ed7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-issue-validator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ jobs:
105105
# Fetch the current state of the issue (open/closed) from the private repository.
106106
issue_status=$(curl -s \
107107
--header "authorization: Bearer ${{ secrets.GH_PR_VALIDATOR_TOKEN }}" \
108-
"$issue_api_url" | jq '.state')
108+
"$issue_api_url" | jq '.state'|tr -d \")
109109
# Check if the issue is still open.
110-
if [[ "$issue_status" -eq "open" ]]; then
110+
if [[ "$issue_status" -eq open ]]; then
111111
echo "Issue #$issue_num is opened."
112112
# Remove the 'Issue-verification-failed' label (if present) and add 'Ready-to-Review'.
113113
gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed"

0 commit comments

Comments
 (0)