|
53 | 53 |
|
54 | 54 | set -x
|
55 | 55 | # Skip validation for documentation or chore PRs
|
56 |
| - if [[ "$TITLE" =~ ^(doc:|docs:|chore:|misc:|Release:|release:) ]]; then |
| 56 | + if [[ "$TITLE" =~ ^(doc:|docs:|chore:|misc:|Release:|release:|Sync:|sync:) ]]; then |
57 | 57 | echo "Skipping validation for docs/chore PR."
|
58 | 58 | echo "PR NUMBER-: $PRNUM "
|
59 | 59 | gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed"
|
@@ -140,32 +140,33 @@ jobs:
|
140 | 140 | --header "authorization: Bearer ${{ secrets.GH_PR_VALIDATOR_TOKEN }}" \
|
141 | 141 | "$issue_api_url"| jq '.state'|tr -d \")
|
142 | 142 | fi
|
143 |
| - echo "Issue Status: $issue_status" |
144 |
| - |
| 143 | + echo "Issue Number : $issue_num Status: $issue_status" |
145 | 144 | # Check if the issue is still open.
|
146 |
| - if [[ "$issue_status" == open ]]; then |
147 |
| - echo "Issue #$issue_num is opened." |
| 145 | + # if [[ "$issue_status" == open ]]; then |
| 146 | + # echo "Issue #$issue_num is opened." |
148 | 147 | if [[ $forked == true ]]; then
|
149 | 148 | echo "PR:Ready-to-Review, exiting gracefully"
|
150 | 149 | exit 0
|
151 | 150 | fi
|
152 | 151 | # Remove the 'Issue-verification-failed' label (if present) and add 'Ready-to-Review'.
|
153 | 152 | gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed"
|
154 | 153 | gh pr edit $PRNUM --add-label "PR:Ready-to-Review"
|
155 |
| - else |
156 |
| - echo "Issue #$issue_num is closed. Please link an open issue to proceed." |
157 |
| - if [[ $forked == true ]]; then |
158 |
| - echo "PR:Ready-to-Review, exiting gracefully" |
159 |
| - exit 0 |
160 |
| - fi |
| 154 | + echo "PR:Ready-to-Review, exiting gracefully" |
| 155 | + exit 0 |
| 156 | + # else |
| 157 | + # echo "Issue #$issue_num is closed. Please link an open issue to proceed." |
| 158 | + # if [[ $forked == true ]]; then |
| 159 | + # echo "PR:Ready-to-Review, exiting gracefully" |
| 160 | + # exit 0 |
| 161 | + # fi |
161 | 162 | # Add a comment to the PR indicating the issue is not linked correctly.
|
162 |
| - gh pr comment $PRNUM --body "PR is linked to a closed issue. Please link an open issue to proceed." |
| 163 | + # gh pr comment $PRNUM --body "PR is linked to a closed issue. Please link an open issue to proceed." |
163 | 164 |
|
164 | 165 | # Add the 'Issue-verification-failed' label and remove 'Ready-to-Review'.
|
165 |
| - gh pr edit $PRNUM --add-label "PR:Issue-verification-failed" |
166 |
| - gh pr edit $PRNUM --remove-label "PR:Ready-to-Review" |
167 |
| - exit 1 |
168 |
| - fi |
| 166 | + # gh pr edit $PRNUM --add-label "PR:Issue-verification-failed" |
| 167 | + # gh pr edit $PRNUM --remove-label "PR:Ready-to-Review" |
| 168 | + # exit 1 |
| 169 | + #fi |
169 | 170 | else
|
170 | 171 | echo "Issue not found. Invalid URL or issue number."
|
171 | 172 | # Add a comment to the PR indicating the issue is not linked correctly.
|
|
0 commit comments