Skip to content

Commit

Permalink
Add Labeler
Browse files Browse the repository at this point in the history
In this commit, we are adding a labelling workflow using Labeler, which will add a helpful label to sample-app-related PRs
  • Loading branch information
thpierce committed Aug 15, 2024
1 parent 06ec685 commit 81f8095
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**/*']
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 81f8095

Please sign in to comment.