excluded apmmachine and dependabot from team member check
@@ -16,13 +16,16 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler-config.yml
enable-versioned-regex: 0
- - uses: AlexanderWert/get-user-teams-membership@v1.0.3
+ - uses: elastic/get-user-teams-membership@v1.0.4
id: checkUserMember
with:
username: ${{ github.actor }}
team: 'apm'
+ usernamesToExclude: |
+ apmmachine
+ dependabot
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
- - if: ${{ steps.checkUserMember.outputs.isTeamMember != 'true' }}
+ - if: ${{ steps.checkUserMember.outputs.isTeamMember != 'true' }} && ${{ steps.checkUserMember.outputs.isExcluded != 'true' }}
uses: AlexanderWert/issue-labeler@v2.3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -30,7 +33,7 @@ jobs:
enable-versioned-regex: 0
- name: Assign new internal pull requests to project
uses: elastic/assign-one-project-github-action@1.2.2
- if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }} && github.event.action == 'opened' && github.event.pull_request
+ if: (${{ steps.checkUserMember.outputs.isTeamMember == 'true' }} || ${{ steps.checkUserMember.outputs.isExcluded == 'true' }}) && github.event.action == 'opened' && github.event.pull_request
with:
project: 'https://github.com/orgs/elastic/projects/454'
project_id: '5882982'
