Skip to content

feat(UI): Implement a DraggableList component #23

feat(UI): Implement a DraggableList component

feat(UI): Implement a DraggableList component #23

name: Add PR assignee
on:
pull_request:
types: [opened]
jobs:
add-pr-assignee:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- shell: bash
continue-on-error: true
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${REPOSITORY_OWNER}/${REPOSITORY_NAME}/issues/${PULL_REQUEST_NUMBER}/assignees \
-f "assignees[]=${USERNAME}"
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
PULL_REQUEST_NUMBER: ${{ github.event.number }}
USERNAME: ${{ github.event.sender.login }}