Skip to content

Commit

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

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

* fix: yaml lint

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

* chore: rename label

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

* chore: fix style and add more labeling files

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

* chore: change name and path

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

* chore: add pull_request_target

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

* chore: update version

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

* chore: add .rst

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>

Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
  • Loading branch information
shmpwk authored and kminoda committed Jan 6, 2023
1 parent e852c56 commit e860ebe
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
ci:
- .github/**/*
- "*.json"
- "*.yaml"
- "*.cfg"
- .clang-format
- .gitignore
- .prettierignore
document:
- docs/**/*
- "**/*.txt"
- "**/*.md"
- "**/*.rst"
- "**/*.jpg"
- "**/*.png"
- "**/*.svg"
common:
- common/**/*
control:
- control/**/*
evaluator:
- evaluator/**/*
launch:
- launch/**/*
localization:
- localization/**/*
map:
- map/**/*
perception:
- perception/**/*
planning:
- planning/**/*
sensing:
- sensing/**/*
simulator:
- simulator/**/*
system:
- system/**/*
tools:
- tools/**/*
vehicle:
- vehicle/**/*
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 e860ebe

Please sign in to comment.