Skip to content

Commit

Permalink
ci: add auto labeling for PRs (#1046)
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
  • Loading branch information
mowies committed Mar 14, 2023
1 parent 92d16a3 commit 89a87cd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
documentation:
- docs/**/*
- "**/*.md"

operator:
- operator/**/*

scheduler:
- scheduler/**/*

metrics-operator:
- metrics-operator/**/*

cert-manager:
- klt-cert-manager/**/*

ops:
- .github/**/*
- netlify.toml
- .markdownlint-cli2.yml

helm:
- helm/**/*
15 changes: 15 additions & 0 deletions .github/workflows/update-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Set PR Labels

on:
pull_request_target:
jobs:
set-labels:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-22.04
steps:
- name: Update Labels
uses: actions/labeler@v4
with:
sync-labels: true

0 comments on commit 89a87cd

Please sign in to comment.