Develop 5.1.9.doc #47
Workflow file for this run
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
#Reference: https://gist.github.com/taji-taji/732514d4d4ee463a07d87895acf90f35#file-assign-self-to-pr-yml | |
name: Assign self to Pull Request | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
assign_self_to_pull_request: | |
name: Assign self to Pull Request | |
# dependabot を使っている場合は dependabot の作る PR では動かさない | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ github.token }} | |
GH_REPO: ${{ github.repository }} | |
NUMBER: ${{ github.event.pull_request.number }} | |
ASSIGNEE: ${{ github.event.pull_request.user.login }} | |
steps: | |
- name: Assign self to pull request | |
run: gh pr edit $NUMBER --add-assignee $ASSIGNEE |