Skip to content

Commit

Permalink
ci: add automatic PR labeler (autowarefoundation#972)
Browse files Browse the repository at this point in the history
* ci: add automatic PR labeler

Signed-off-by: ktro2828 <[email protected]>

* ci: update the labeler configuration

Signed-off-by: ktro2828 <[email protected]>

* ci: apply `component:ui`

Signed-off-by: ktro2828 <[email protected]>

---------

Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 authored May 14, 2024
1 parent e4c6991 commit 8fb1a7e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"type:ci":
- .github/**/*
- "*.json"
- "*.yaml"
- "*.cfg"
- .clang-format
- .gitignore
- .prettierignore
"type:documentation":
- "**/*.md"
- "**/*.rst"
- "**/*.jpg"
- "**/*.png"
- "**/*.svg"
"component:control":
- "**/*control*"
"component:localization":
- "**/*localization*"
"component:map":
- "**/*map*"
"component:perception":
- "**/*perception*"
"component:planning":
- "**/*planning*"
"component:sensing":
- "**/*sensing*"
"component:simulation":
- "**/*simulator*"
"component:system":
- "**/*system*"
"component:ui":
- "**/*.rviz"
- "**/rviz"
16 changes: 16 additions & 0 deletions .github/workflows/pr-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pr-labeler
on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yaml

0 comments on commit 8fb1a7e

Please sign in to comment.