Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
An action for automatically labelling pull requests
TypeScript JavaScript
Branch: master
Clone or download
Latest commit 0d3cd1e Aug 29, 2019

README.md

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:

name: "Pull Request Labeler"
on: 
- pull_request

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/labeler@v2
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
You can’t perform that action at this time.