Github Action: Add Auto Labeler for community PR and Issues #3
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: Auto Community Labeler | |
on: | |
pull_request: | |
issues: | |
jobs: | |
auto_PR_labeler: | |
name: Auto PR Community Labeler | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- name: Add Contributer Label | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: github.event.pull_request.author_association == 'COLLABORATOR' || github.event.pull_request.author_association == 'CONTRIBUTOR' | |
with: | |
labels: community contribution | |
auto_Issue_labeler: | |
name: Auto Issue Community Labeler | |
runs-on: ubuntu-latest | |
if: github.event_name == 'issue' | |
steps: | |
- name: Add Contributer Label | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: github.event.issue.author_association == 'COLLABORATOR' || github.event.issue.author_association == 'CONTRIBUTOR' | |
with: | |
labels: community contribution |