aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-08-16 23:01:34 +0200
committerGitHub <noreply@github.com>2023-08-16 23:01:34 +0200
commit9b8625d999102df7ac8f8772bd1738778cf4b776 (patch)
tree419c6e39b4c8b86436d4209b18555a7ca7e3d443 /.github/workflows
parentb12ea343d00d5325c95975afa55a3b1e41986f86 (diff)
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
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pr_triage.yml8
1 files changed, 5 insertions, 3 deletions
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 }}