Create workflow for automatic assignment of a PR to its creator (#754)

* Create workflow for automatic assignment of a PR to its creator

Create workflow for automatic assignment of a PR to its creator.

* fix add assignee flag
This commit is contained in:
chair 2023-09-19 16:18:47 -07:00 committed by GitHub
parent 81638fe111
commit bf90ab4d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
.github/workflows/auto_assign_pr.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Auto Assign PR to Creator
on:
pull_request:
types:
- opened
jobs:
assign_creator:
runs-on: ubuntu-latest
steps:
- name: Assign PR to author
run: |
gh pr update ${{ github.event.pull_request.number }} --add-assignee "${{ github.event.pull_request.user.login }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}