Skip to content
Snippets Groups Projects
Unverified Commit 4ab0cfca authored by Roman Abdulmanov's avatar Roman Abdulmanov Committed by GitHub
Browse files

Mark external PRs with the label (#44343)

parent 8cb98be8
No related branches found
No related tags found
No related merge requests found
name: Mark External PRs
on:
pull_request:
types: [opened]
jobs:
on-pr-opened:
permissions:
pull-requests: write
runs-on: ubuntu-22.04
timeout-minutes: 1
if: ${{ !contains(github.event.pull_request.labels.*.name, 'External') }}
steps:
- uses: tspascoal/get-user-teams-membership@v3
id: checkUserMember
with:
username: ${{ github.actor }}
organization: 'metabase'
team: 'employees'
GITHUB_TOKEN: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }} # Token with read:org scope
- name: add labels
uses: actions-ecosystem/action-add-labels@v1
if: ${{ steps.checkUserMember.outputs.isTeamMember == 'false' }}
with:
labels: |
External
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment