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-09-04 19:14:20 +02:00
|
|
|
# Grab sources to get latest labeler.yml
|
|
|
|
- name: Fetch sources
|
2023-09-04 22:16:17 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-09-04 19:14:20 +02:00
|
|
|
with:
|
|
|
|
# Ensure we pin the source origin as pull_request_target run under forks.
|
|
|
|
fetch-depth: 0
|
|
|
|
repository: Ryujinx/Ryujinx
|
|
|
|
ref: master
|
|
|
|
|
2023-09-04 13:39:25 +02:00
|
|
|
- name: Checkout Ryujinx-Mako
|
2023-09-04 22:16:17 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-09-04 13:39:25 +02:00
|
|
|
with:
|
|
|
|
repository: Ryujinx/Ryujinx-Mako
|
|
|
|
ref: master
|
|
|
|
path: '.ryujinx-mako'
|
|
|
|
|
|
|
|
- name: Setup Ryujinx-Mako
|
|
|
|
uses: ./.ryujinx-mako/.github/actions/setup-mako
|
|
|
|
|
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
|
|
|
|
run: |
|
2023-09-05 00:55:04 +02:00
|
|
|
poetry -n -C .ryujinx-mako run ryujinx-mako update-reviewers ${{ github.repository }} ${{ github.event.pull_request.number }} .github/reviewers.yml
|
2023-07-12 18:31:08 +02:00
|
|
|
shell: bash
|
2023-08-16 23:01:34 +02:00
|
|
|
env:
|
2023-09-04 13:39:25 +02:00
|
|
|
MAKO_APP_ID: ${{ secrets.MAKO_APP_ID }}
|
2023-08-16 23:01:34 +02:00
|
|
|
MAKO_PRIVATE_KEY: ${{ secrets.MAKO_PRIVATE_KEY }}
|
2023-09-04 13:39:25 +02:00
|
|
|
MAKO_INSTALLATION_ID: ${{ secrets.MAKO_INSTALLATION_ID }}
|