Skip to content

Add app icon for iOS #75

Add app icon for iOS

Add app icon for iOS #75

name: Auto assign iOS PR reviewers
on:
pull_request:
types: [opened, ready_for_review, labeled]
jobs:
reviewers-assign:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
timeout-minutes: 5
steps:
- name: Assign reviewers
uses: actions/github-script@v7
if: contains(github.event.pull_request.labels.*.name, 'type:iOS 🍎') && github.event.pull_request.draft == false
env:
IOS_REVIEWERS: ${{ vars.IOS_REVIEWERS }}
with:
script: |
const { IOS_REVIEWERS } = process.env
const author = context.payload.pull_request.user.login;
const reviewers = IOS_REVIEWERS.split(',').filter(reviewer => reviewer !== author)
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
reviewers
});