2023-06-12 12:29:41 +02:00
|
|
|
name: "Pull Request Triage"
|
|
|
|
on:
|
2023-06-12 20:42:27 +02:00
|
|
|
pull_request_target:
|
2023-06-13 11:51:22 +02:00
|
|
|
types: [opened, ready_for_review]
|
2023-06-12 12:29:41 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
triage:
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
2023-06-13 11:51:22 +02:00
|
|
|
|
2023-06-12 12:29:41 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-06-13 11:51:22 +02:00
|
|
|
|
2023-06-12 12:29:41 +02:00
|
|
|
steps:
|
2023-07-12 18:31:08 +02:00
|
|
|
# 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
|
|
|
|
|
2023-06-12 12:29:41 +02:00
|
|
|
- name: Update labels based on changes
|
|
|
|
uses: actions/labeler@v4
|
|
|
|
with:
|
|
|
|
sync-labels: true
|
|
|
|
dot: true
|
|
|
|
|
2023-07-12 18:31:08 +02:00
|
|
|
- name: Assign reviewers
|
2023-08-06 23:25:02 +02:00
|
|
|
if: ! github.event.pull_request.draft
|
2023-07-12 18:31:08 +02:00
|
|
|
run: |
|
|
|
|
pip3 install PyGithub
|
|
|
|
python3 .github/update_reviewers.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${{ github.event.pull_request.number }} .github/reviewers.yml
|
|
|
|
shell: bash
|