Skip to content

Github Action: Add Auto Labeler for community PR and Issues #3

Github Action: Add Auto Labeler for community PR and Issues

Github Action: Add Auto Labeler for community PR and Issues #3

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