update: Move FlipCard to component package Resolves #460 #66
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}); |