From 9d161d74f4baface75cf6a7770888a9eee07523a Mon Sep 17 00:00:00 2001 From: lwjohnst86 Date: Fri, 13 Sep 2024 14:00:38 +0000 Subject: [PATCH] chore(sync): :hammer: created local '.github/workflows/assign-pr-to-creator.yml' from remote '.github/workflows/assign-pr-to-creator.yml' --- .github/workflows/assign-pr-to-creator.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/assign-pr-to-creator.yml diff --git a/.github/workflows/assign-pr-to-creator.yml b/.github/workflows/assign-pr-to-creator.yml new file mode 100644 index 0000000..3836697 --- /dev/null +++ b/.github/workflows/assign-pr-to-creator.yml @@ -0,0 +1,24 @@ +name: Assign PR to creator + +on: + pull_request: + types: + - reopened + - opened + +permissions: + pull-requests: write + +jobs: + assign-pr-to-creator: + name: Assign PR to creator + runs-on: ubuntu-latest + steps: + - name: Assign PR to creator + if: ${{ github.event_name == 'pull_request' }} + run: | + gh pr edit $PR --add-assignee $AUTHOR + env: + AUTHOR: ${{ github.event.pull_request.user.login }} + PR: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}