Skip to content

[react-pdf] 디바이스의 pixel ratio를 조절합니다. #15

[react-pdf] 디바이스의 pixel ratio를 조절합니다.

[react-pdf] 디바이스의 pixel ratio를 조절합니다. #15

Workflow file for this run

name: 'add assignee to pull request automatically'
on:
pull_request:
types: [ opened, ready_for_review, synchronize, reopened ]
branches:
- '**'
- '!main'
jobs:
ADD_ASSIGNEE_TO_PULL_REQUEST:
runs-on: ubuntu-latest
steps:
- name: Add Assignee to pr
uses: actions/github-script@v3
with:
script: |
try {
const result = await github.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.number,
})
console.log(result)
if (result.data.assignee === null) {
await github.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
assignees: context.actor,
})
}
} catch (err) {
console.error(`Check Pull Request Error ${err}`)
}