mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 20:51:42 +00:00
44767181eca8949922d0db82bea689a44ad12e4f
Pull Request Labeler
Pull request labeler triages PRs based on the paths that are modified in the PR.
To use, create a .github/labeler.yml file with a list of labels and minimatch
globs to match to apply the label.
Example:
label1:
- example1/**/*
label2: example2/*
label3:
- example3/*
- example3/**/*.yml
Then create a workflow utilizing the labeler action, granting access to the GITHUB_TOKEN so the action can make calls to GitHub's rest API:
name: "Pull Request Labeler"
on:
- pull_request
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Languages
TypeScript
99.7%
JavaScript
0.3%