From 52c46987f3bc9043b4c418d28e7877970c558075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=81ada?= Date: Fri, 8 Sep 2023 15:35:32 +0200 Subject: [PATCH] Replace `assign-pr-creator-action` with GitHub CLI (#1008) --- .github/workflows/assign-pr.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/assign-pr.yml b/.github/workflows/assign-pr.yml index 789af0b..2c60ece 100644 --- a/.github/workflows/assign-pr.yml +++ b/.github/workflows/assign-pr.yml @@ -6,9 +6,12 @@ on: jobs: assign_creator: + if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} runs-on: ubuntu-latest steps: - name: Assign PR to creator - uses: thomaseizinger/assign-pr-creator-action@v1.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} + CREATOR: ${{ github.event.pull_request.user.login }} + run: gh pr edit "$PR_URL" --add-assignee "$CREATOR"