From 05ef729ce5bfce07e6f519d08ad6d476bf7b14bf Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Thu, 19 Sep 2024 12:48:10 +0200 Subject: [PATCH] ci: Auto assign renovate prs to vasfvitor hehehe --- .github/workflows/assign.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index c529433bf..c4811e6d8 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -15,3 +15,10 @@ jobs: # The gh cli currently does not consider the pr author an assignable user if they aren't part of the org run: gh api -X POST /repos/tauri-apps/tauri-docs/issues/${{ github.event.pull_request.number }}/assignees -f "assignees[]=${{ github.event.pull_request.user.login }}" #run: gh pr edit ${{ github.event.pull_request.number }} --add-assignee ${{ github.event.pull_request.user.login }} -R ${{ github.repository }} + + - name: Auto-assign Renovate PRs + if: ${{ github.event.pull_request.user.type == 'Bot' && github.event.pull_request.user.login == 'renovate[bot]' }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # The gh cli currently does not consider the pr author an assignable user if they aren't part of the org + run: gh api -X POST /repos/tauri-apps/tauri-docs/issues/${{ github.event.pull_request.number }}/assignees -f "assignees[]=vasfvitor"