Skip to content

Commit

Permalink
Add workflow for labeling PRs by their content (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought authored Mar 13, 2021
1 parent 6abc65e commit 7040587
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# PRs that only touch the docs folder
documentation:
- all: ["docs/**/*"]

# PRs that only touch type files
typescript:
- all: ["**/*[.|-]d.ts"]
10 changes: 10 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Pull Request Labeler"
on: pull_request_target

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 7040587

Please sign in to comment.