Skip to content

fix(map): iOS 키보드가 검색 시트를 밀어내는 문제 수정 #99

fix(map): iOS 키보드가 검색 시트를 밀어내는 문제 수정

fix(map): iOS 키보드가 검색 시트를 밀어내는 문제 수정 #99

name: Assign PR Author
on:
pull_request:
types: [opened, reopened]
permissions:
contents: read
pull-requests: write
jobs:
assign-author:
name: Assign author
runs-on: ubuntu-latest
timeout-minutes: 5
# bot PR cannot be Assignee
if: github.event.pull_request.user.type != 'Bot'
steps:
- name: Assign PR author when no assignee exists
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
const pullRequest = context.payload.pull_request;
if (pullRequest.assignees.length > 0) {
core.info('PR already has an assignee.');
return;
}
await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pullRequest.number,
assignees: [pullRequest.user.login],
});