mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 19:36:40 +00:00
e61c09bc85
Switch to a custom made python script that query GitHub API to grab latest state of the PR after label assign.
34 lines
927 B
YAML
34 lines
927 B
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
|
|
|
|
- name: Assign reviewers
|
|
run: |
|
|
pip3 install PyGithub
|
|
python3 .github/update_reviewers.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${{ github.event.pull_request.number }} .github/reviewers.yml
|
|
shell: bash
|