Skip to content

Commit

Permalink
add labeler (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidari authored Nov 7, 2024
1 parent 1cc31b6 commit 806c44d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
data-submission:
- changed-files:
- any-glob-to-any-file:
- 'model-output/**/*.csv'

model-metadata:
- changed-files:
- any-glob-to-any-file:
- model-metadata/**/*.yml
- model-metadata/**/*.yaml

documentation:
- changed-files:
- any-glob-to-any-file: '**/*.md'

configuration:
- changed-files:
- any-glob-to-any-file:
- hub-config/*
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull Request Labeler
on:
pull_request_target:
types: [opened, synchronize]

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Apply labels
id: label-pr
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/labeler.yml'
sync-labels: true

0 comments on commit 806c44d

Please sign in to comment.