Skip to content

Commit

Permalink
add a PR labeler config (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Sep 26, 2024
1 parent b32ba7a commit 0b826ab
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Configuration for .github/workflows/pull_request_label.yml.

'type-infra':
- changed-files:
- any-glob-to-any-file: '.github/**'

'package:native_synchronization':
- changed-files:
- any-glob-to-any-file: 'pkgs/native_synchronization/**'
22 changes: 22 additions & 0 deletions .github/workflows/pull_request_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow applies labels to pull requests based on the paths that are
# modified in the pull request.
#
# Edit `.github/labeler.yml` to configure labels. For more information, see
# https://github.com/actions/labeler.

name: Pull Request Labeler
permissions: read-all

on:
pull_request_target

jobs:
label:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit 0b826ab

Please sign in to comment.