Skip to content

fix(*): auto-merge workflow ๋กค๋ฐฑ ๋ฐ auto-approve ์›Œํฌํ”Œ๋กœ์šฐ ์ถ”๊ฐ€ #2

fix(*): auto-merge workflow ๋กค๋ฐฑ ๋ฐ auto-approve ์›Œํฌํ”Œ๋กœ์šฐ ์ถ”๊ฐ€

fix(*): auto-merge workflow ๋กค๋ฐฑ ๋ฐ auto-approve ์›Œํฌํ”Œ๋กœ์šฐ ์ถ”๊ฐ€ #2

Workflow file for this run

name: Auto Approve PR
on:
pull_request:
types: [labeled]
jobs:
auto-approve:
if: github.event.label.name == 'auto approve'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Approve and Comment on PR
uses: actions/github-script@v6
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
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: '๊ณ ์ƒํ–ˆ๋‹ค. ๐ŸŽ‰๐Ÿ‘๐Ÿฝ'
});