From 8fb1a7e4e9c6fa31c5da3ddc9bd650ee33d864c4 Mon Sep 17 00:00:00 2001 From: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com> Date: Tue, 14 May 2024 11:54:54 +0900 Subject: [PATCH] ci: add automatic PR labeler (#972) * ci: add automatic PR labeler Signed-off-by: ktro2828 * ci: update the labeler configuration Signed-off-by: ktro2828 * ci: apply `component:ui` Signed-off-by: ktro2828 --------- Signed-off-by: ktro2828 --- .github/labeler.yaml | 33 +++++++++++++++++++++++++++++++ .github/workflows/pr-labeler.yaml | 16 +++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/labeler.yaml create mode 100644 .github/workflows/pr-labeler.yaml diff --git a/.github/labeler.yaml b/.github/labeler.yaml new file mode 100644 index 0000000000..412523c3a3 --- /dev/null +++ b/.github/labeler.yaml @@ -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" diff --git a/.github/workflows/pr-labeler.yaml b/.github/workflows/pr-labeler.yaml new file mode 100644 index 0000000000..d45067bee5 --- /dev/null +++ b/.github/workflows/pr-labeler.yaml @@ -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