[DEV-6461] Add AccountStatus.stale #166
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: 👤 Review | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, labeled, unlabeled] | |
pull_request_review: | |
jobs: | |
require_reviewer: | |
name: require | |
runs-on: ubuntu-latest | |
steps: | |
- uses: tspascoal/get-user-teams-membership@v2 | |
id: membership | |
name: Load teams of the user | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
with: | |
username: ${{ github.event.pull_request.user.login }} | |
GITHUB_TOKEN: ${{ secrets.READ_ORG_TOKEN }} | |
- uses: Automattic/action-required-review@v3 | |
name: Require reviews - api | |
if: ${{ github.actor == 'dependabot[bot]' || !contains(steps.membership.outputs.teams, 'api') }} | |
with: | |
requirements: | | |
- name: openapi.yaml | |
paths: | |
- openapi.yaml | |
teams: | |
- api | |
status: Review by athenianco/api is required | |
fail: ${{!contains(github.event.*.labels.*.name, 'review ignored')}} | |
token: ${{ secrets.GKWILLIE_REVIEW_TOKEN }} | |
- uses: Automattic/action-required-review@v3 | |
name: Require reviews - webapp | |
if: ${{ github.actor != 'dependabot[bot]' && !contains(steps.membership.outputs.teams, 'webapp') }} | |
with: | |
requirements: | | |
- name: openapi.yaml | |
paths: | |
- openapi.yaml | |
teams: | |
- webapp | |
status: Review by athenianco/webapp is required | |
fail: ${{!contains(github.event.*.labels.*.name, 'review ignored')}} | |
token: ${{ secrets.GKWILLIE_REVIEW_TOKEN }} |