From 81f8095f17180bd27342cdbab5c2659b958e7b56 Mon Sep 17 00:00:00 2001 From: Thomas Pierce Date: Thu, 15 Aug 2024 13:51:47 -0700 Subject: [PATCH] Add Labeler In this commit, we are adding a labelling workflow using Labeler, which will add a helpful label to sample-app-related PRs --- .github/labeler.yml | 8 ++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..7dc54b90 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,8 @@ +# This is used with the label workflow which will triage pull requests and apply a label based on the paths that are +# modified in the pull request. For more information, see: https://github.com/actions/labeler + +'InstrumentationSampleApp': +- all: + - changed-files: + - any-glob-to-any-file: ['sample-apps/**/*'] + - all-globs-to-any-file: ['!sample-apps/prometheus-sample-app/**/*'] \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..659ac26b --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 \ No newline at end of file