name: "Auto Add Labels"
on:
pull_request_target:
types: [opened, reopened]
permissions:
pull-requests: write
jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
.github/labeler.yml
components:
- all:
- changed-files:
- any-glob-to-any-file: "components/**/*"
pages:
- all:
- changed-files:
- any-glob-to-any-file: "screens/**/*"
ios:
- all:
- changed-files:
- any-glob-to-any-file: "ios/**/*"
android:
- all:
- changed-files:
- any-glob-to-any-file: "android/**/*"
# Add 'Documentation' label to any change to .md files within the entire repository
documentation:
- changed-files:
- any-glob-to-any-file: "**/*.md"
github_actions:
- all:
- changed-files:
- any-glob-to-any-file: ".github/workflows/**/*"