From bf90ab4d1b08ac97cc2e066939fdd438a910f9b2 Mon Sep 17 00:00:00 2001 From: chair <29414216+chair28980@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:18:47 -0700 Subject: [PATCH] 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 --- .github/workflows/auto_assign_pr.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/auto_assign_pr.yml diff --git a/.github/workflows/auto_assign_pr.yml b/.github/workflows/auto_assign_pr.yml new file mode 100644 index 00000000..07340ac5 --- /dev/null +++ b/.github/workflows/auto_assign_pr.yml @@ -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 }}