From 806c44d02b4512529a95116fab26bc17fb9db1bc Mon Sep 17 00:00:00 2001 From: Subekshya Bidari <37636707+sbidari@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:02:28 -0700 Subject: [PATCH] add labeler (#31) --- .github/labeler.yml | 19 +++++++++++++++++++ .github/workflows/labeler.yaml | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..985ecee --- /dev/null +++ b/.github/labeler.yml @@ -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/* \ No newline at end of file diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 0000000..a731299 --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -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 \ No newline at end of file