added labeling of community issues and PRs
name: "Issue Labeler"
on:
issues:
- types: [opened, edited]
+ types: [opened]
pull_request_target:
types: [opened]
@@ -14,3 +14,15 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler-config.yml
enable-versioned-regex: 0
+ - uses: AlexanderWert/get-user-teams-membership@v1
+ id: checkUserMember
+ with:
+ username: ${{ github.actor }}
+ team: 'apm'
+ GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
+ - if: ${{ !steps.checkUserMember.outputs.isTeamMember }}
+ uses: AlexanderWert/issue-labeler@v2.3
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+ configuration-path: .github/community-label.yml
+ enable-versioned-regex: 0
