Skip to content

chore(ci): add contribution labeler #954

chore(ci): add contribution labeler

chore(ci): add contribution labeler #954

name: Opened Pull Request Labeler
on:
pull_request:
types: [opened, reopened]
jobs:
pr-triage:
runs-on: ubuntu-latest
steps:
- name: Assign Author
uses: technote-space/assign-author@v1
- name: Check user for team affiliation
uses: tspascoal/get-user-teams-membership@v2
id: teamAffiliation
with:
GITHUB_TOKEN: ${{ secrets.PAT_GH_READ_ORG }}
username: ${{ github.actor }}
team: "twilio-labs/design-systems-eng,twilio-labs/design-systems-pd"
- name: Auto contribution labeller
if: ${{ steps.teamAffiliation.outputs.isTeamMember == 'false' }}
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/opened-pr-contribution-labeler.yml