From 9b8625d999102df7ac8f8772bd1738778cf4b776 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Wed, 16 Aug 2023 23:01:34 +0200 Subject: Introduce Mako to fix pr_triage workflow (#5574) * pr_triage: Fix invalid workflow * Don't assign reviewers to draft PRs * Add team review request for developers team * Introduce Mako to make team reviewers work --- .github/workflows/pr_triage.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/pr_triage.yml b/.github/workflows/pr_triage.yml index cd90e645..448e2c7d 100644 --- a/.github/workflows/pr_triage.yml +++ b/.github/workflows/pr_triage.yml @@ -27,9 +27,11 @@ jobs: sync-labels: true dot: true + - run: pip3 install PyGithub + - name: Assign reviewers - if: ! github.event.pull_request.draft run: | - pip3 install PyGithub - python3 .github/update_reviewers.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${{ github.event.pull_request.number }} .github/reviewers.yml + python3 .github/update_reviewers.py ${{ secrets.MAKO_APP_ID }} "MAKO_PRIVATE_KEY" ${{ secrets.MAKO_INSTALLATION_ID }} ${{ github.repository }} ${{ github.event.pull_request.number }} .github/reviewers.yml shell: bash + env: + MAKO_PRIVATE_KEY: ${{ secrets.MAKO_PRIVATE_KEY }} -- cgit v1.2.3