Skip to content

Commit

Permalink
feat: update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Huweicai committed Jul 31, 2024
1 parent e3393df commit eea28c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/approve-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
uses: actions/checkout@v2

- name: Check Mergeable
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
OWNER=${{ github.repository_owner }}
REPO=${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
API_URL="http://124.222.18.13:8080/public/v1/codereview/v1/codereview/${OWNER}/${REPO}/pull/$PR_NUMBER/mergeable"
RESPONSE=$(curl -s $API_URL)
Expand All @@ -27,4 +28,4 @@ jobs:
exit 1
fi
echo "PR is mergeable: $MESSAGE"
echo "PR is mergeable: $MESSAGE"

0 comments on commit eea28c0

Please sign in to comment.