Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeunnkimm committed Jun 29, 2024
1 parent 03e19b1 commit dfbadb8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ jobs:
uses: actions/checkout@v2

- name: Auto approve PR
uses: hmarr/[email protected]
with:
github-token: ${{ secrets.ACCESS_TOKEN }}

- name: Comment on PR
run: |
PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
REVIEW_BODY="κ³ μƒν–ˆλ‹€. πŸŽ‰πŸ‘πŸ½"
curl -s -X POST \
-H "Authorization: token ${{ secrets.ACCESS_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{\"body\":\"κ³ μƒν–ˆλ‹€. πŸŽ‰πŸ‘πŸ½\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
-d "{\"event\":\"APPROVE\", \"body\":\"${REVIEW_BODY}\"}" \
"https://api.github.com/repos/${{ github.repository }}/pulls/${PR_NUMBER}/reviews"

0 comments on commit dfbadb8

Please sign in to comment.