Skip to content

✨ Source Instagram: Migrate Instagram sources Media, User, UserLiftimelnsights and Stories to low-code #16179

✨ Source Instagram: Migrate Instagram sources Media, User, UserLiftimelnsights and Stories to low-code

✨ Source Instagram: Migrate Instagram sources Media, User, UserLiftimelnsights and Stories to low-code #16179

name: Connector Ops CI - Check contractors review requirements
on:
pull_request:
types:
- opened
- pull_request_review
- ready_for_review
- reopened
- synchronize
jobs:
check-review-requirements:
name: "Check if a review is required from Connector teams"
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.fork == false }}
# This workflow cannot run on forks, as the fork's github token does not have `read:org`
# permissions, which are required to check the user's team membership. We assume that a
# review on a fork's PR is always required from one or more connector teams and/or support.
steps:
- name: Check contributor team membership
uses: tspascoal/get-user-teams-membership@v3
id: actorTeams
with:
username: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.OCTAVIA_4_ROOT_ACCESS }}
- if: ${{ (contains(steps.actorTeams.outputs.teams, 'community-contractor')) }}
name: Check if the review requirements are met
uses: Automattic/action-required-review@v3
with:
status: Required review
token: ${{ secrets.OCTAVIA_4_ROOT_ACCESS }}
request-reviews: true
fail: true
requirements: |
- paths: unmatched
teams:
- connector-extensibility
- gl-python