diff --git a/.github/workflows/assign-reviewer.yml b/.github/workflows/assign-reviewer.yml new file mode 100644 index 00000000..9f2c719d --- /dev/null +++ b/.github/workflows/assign-reviewer.yml @@ -0,0 +1,14 @@ +name: Assign Reviewer +on: pull_request_target + +jobs: + assign-reviewer: + runs-on: ubuntu-latest + steps: + - name: Assign reviewer + if: > + startsWith(github.event.pull_request.title, 'build(deps-dev): bump ') == false && + contains(github.event.action, 'opened') + run: gh pr edit ${{ github.event.number }} --add-assignee ${{ github.event.pull_request.user.login }} --add-reviewer remarkablemark + env: + GITHUB_TOKEN: ${{ github.token }}