mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-22 18:15:11 +00:00
9b8625d999
* 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
37 lines
1 KiB
YAML
37 lines
1 KiB
YAML
name: "Pull Request Triage"
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, ready_for_review]
|
|
|
|
jobs:
|
|
triage:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# Grab sources to get update_reviewers.py and reviewers.yml
|
|
- name: Fetch sources
|
|
uses: actions/checkout@v3
|
|
with:
|
|
# Ensure we pin the source origin as pull_request_target run under forks.
|
|
fetch-depth: 0
|
|
repository: Ryujinx/Ryujinx
|
|
ref: master
|
|
|
|
- name: Update labels based on changes
|
|
uses: actions/labeler@v4
|
|
with:
|
|
sync-labels: true
|
|
dot: true
|
|
|
|
- run: pip3 install PyGithub
|
|
|
|
- name: Assign reviewers
|
|
run: |
|
|
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 }}
|