Skip to content

Commit

Permalink
Add pr labeler workflow (open-telemetry#4313)
Browse files Browse the repository at this point in the history
  • Loading branch information
svrnm authored and ricardoamaro committed Apr 19, 2024
1 parent e2dda77 commit 51c9b01
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/component-label-map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
blog:
- changed-files:
- any-glob-to-any-file:
- content/en/blog/**
sig:cpp:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/cpp/**
sig:erlang:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/erlang/**
sig:go:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/go/**
sig:java:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/java/**
sig:js:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/js/**
sig:dotnet:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/net/**
sig:php:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/php/**
sig:python:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/python/**
sig:ruby:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/ruby/**
sig:rust:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/rust/**
sig:swift:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/languages/swift/**
sig:operator:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/kubernetes/operator/**
sig:helm:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/kubernetes/helm/**
sig:security:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/security/**
sig:demo:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/demo/**
sig:collector:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/collector/**
sig:enduser:
- changed-files:
- any-glob-to-any-file:
- content/en/community/end-user/**
sig:spec:
- changed-files:
- any-glob-to-any-file:
- content/en/docs/specs/**
16 changes: 16 additions & 0 deletions .github/workflows/label-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Label PR'
on:
- pull_request_target

jobs:
labeler:
name: 'Add component labels'
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/labeler@v5
with:
configuration-path: '.github/component-label-map.yml'

0 comments on commit 51c9b01

Please sign in to comment.