Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeunnkimm committed Jun 21, 2024
1 parent 3d71b46 commit 15c2894
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Auto approve PR
uses: hmarr/auto-approve-action@v2.0.0
- name: Approve and Comment on PR
uses: actions/github-script@v6
with:
github-token: ${{ secrets.ACCESS_TOKEN }}

- name: Comment on PR
run: |
PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
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"
script: |
const prNumber = context.payload.pull_request.number;
await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber,
event: 'APPROVE',
body: 'κ³ μƒν–ˆλ‹€. πŸŽ‰πŸ‘πŸ½'
});

0 comments on commit 15c2894

Please sign in to comment.