diff --git a/.github/workflows/assign-author-to-pr.yaml b/.github/workflows/assign-author-to-pr.yaml new file mode 100644 index 0000000..0538e78 --- /dev/null +++ b/.github/workflows/assign-author-to-pr.yaml @@ -0,0 +1,23 @@ +name: Assign author to their PR + +on: + pull_request: + types: + - reopened + - opened + +permissions: + pull-requests: write + +jobs: + assign-author-to-pr: + runs-on: ubuntu-latest + steps: + - name: Assign PR to author + 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 }} + diff --git a/.github/workflows/auto-author-assign.yaml b/.github/workflows/auto-author-assign.yaml deleted file mode 100644 index 7277937..0000000 --- a/.github/workflows/auto-author-assign.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# .github/workflows/auto-author-assign.yml -# https://github.com/marketplace/actions/auto-author-assign -name: Auto Author Assign - -on: - pull_request_target: - types: [ opened, reopened ] - -permissions: - pull-requests: write - -jobs: - assign-author: - runs-on: ubuntu-latest - steps: - - uses: toshimaru/auto-author-assign@v2.1.0 \ No newline at end of file