From 693183a9469d8909ff9ab3432f0740e5470323e4 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Fri, 8 Sep 2023 17:24:19 -0700 Subject: [PATCH] CI: auto label PR's (#29842) * auto label * on pull request * checkout * yaml not yml * recursive here too * start with just car stuff and CI * require all * no fps * add translations and fix CI old-commit-hash: aa52cf3e815ea665b9222c4c6a1e291d6c86f8a9 --- .github/labeler.yaml | 42 ++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yaml | 18 +++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/labeler.yaml create mode 100644 .github/workflows/labeler.yaml diff --git a/.github/labeler.yaml b/.github/labeler.yaml new file mode 100644 index 0000000000..94bc9074cd --- /dev/null +++ b/.github/labeler.yaml @@ -0,0 +1,42 @@ +CI / testing: + - all: ['.github/**'] + - all: ['**/test_*'] + +car: + - all: ['selfdrive/car/**'] + +body: + - all: ['selfdrive/car/body/*'] +chrysler: + - all: ['selfdrive/car/chrysler/*'] +ford: + - all: ['selfdrive/car/ford/*'] +gm: + - all: ['selfdrive/car/gm/*'] +honda: + - all: ['selfdrive/car/honda/*'] +hyundai: + - all: ['selfdrive/car/hyundai/*'] +mazda: + - all: ['selfdrive/car/mazda/*'] +nissan: + - all: ['selfdrive/car/nissan/*'] +subaru: + - all: ['selfdrive/car/subaru/*'] +tesla: + - all: ['selfdrive/car/tesla/*'] +toyota: + - all: ['selfdrive/car/toyota/*'] +volkswagen: + - all: ['selfdrive/car/volkswagen/*'] + +simulation: + - all: ['tools/sim/**'] +ui: + - all: ['selfdrive/ui/**'] +tools: + - all: ['tools/**'] + +multilanguage: + - all: ['selfdrive/ui/translations/**'] + diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 0000000000..3387a24f2e --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -0,0 +1,18 @@ +name: "Pull Request Labeler" +on: + pull_request: + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: false + - uses: actions/labeler@v4 + with: + dot: true + configuration-path: .github/labeler.yaml \ No newline at end of file