diff --git a/.github/workflows/approve-check.yaml b/.github/workflows/approve-check.yaml index df3edd6..b8a5ed7 100644 --- a/.github/workflows/approve-check.yaml +++ b/.github/workflows/approve-check.yaml @@ -18,8 +18,8 @@ jobs: PR_NUMBER=${{ github.event.pull_request.number }} ENCODED_TOKEN=$(echo -n $TOKEN | base64) - - API_URL="http://124.222.18.13:8080/public/v1/codereview/${OWNER}/${REPO}/pull/${PR_NUMBER}/mergeable" + + API_URL="http://124.222.18.13:8080/public/v1/codereview/${OWNER}/${REPO}/pull/${PR_NUMBER}/status" RESPONSE=$(curl -s -H "Authorization: Basic $ENCODED_TOKEN" $API_URL) MERGEABLE=$(echo $RESPONSE | jq -r '.mergeable')