This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
refactor: Add option to specify generated method name #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref. https://zenn.dev/snowcait/articles/d6bc5eafd8ab75 | |
name: 'Auto Assign' | |
on: | |
pull_request: | |
types: | |
- opened | |
- ready_for_review | |
- reopened | |
jobs: | |
assign: | |
name: Auto Assign | |
if: github.actor != 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- if: ${{ toJSON(github.event.pull_request.assignees) == '[]' }} | |
run: gh pr edit "${NUMBER}" --add-assignee "${ASSIGNEE}" | |
env: | |
GH_TOKEN: ${{ github.token }} | |
GH_REPO: ${{ github.repository }} | |
NUMBER: ${{ github.event.pull_request.number }} | |
ASSIGNEE: ${{ github.event.pull_request.user.login }} |