From 3611f6ebbe04621409999d0cdfdb064adb5cc15e Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 5 Dec 2023 12:10:35 +0100 Subject: [PATCH] Fix automatic labeling system due to upstream breaking change (#6011) --- .github/labeler.yml | 40 +++++++++++++---------------------- .github/labels.yml | 5 ++++- .github/workflows/labeler.yml | 2 ++ 3 files changed, 21 insertions(+), 26 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 8a6ed52511..efff988c06 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -11,29 +11,19 @@ # Please keep the labels sorted and deduplicated. "Hardware": - - patch/u-boot/* - - patch/u-boot/**/* - - patch/atf/* - - config/bootenv/* - - config/bootscripts/* - - patch/kernel/* - - patch/kernel/**/* - - patch/misc/* - - patch/crust/* - - config/kernel/* - - config/sources/* - - config/sources/**/* - - config/boards/* - - config/bootscripts/* - - config/bootenv/* - -"Software": - - lib/* - - tools/* - - config/cli/* - - packages/* - - extensions/* - - .github/workflows/* - +- all: + - changed-files: + - any-glob-to-any-file: ['patch/**/*','config/**/*'] + - all-globs-to-all-files: ['!config/cli/*','!config/desktop/*','!config/distributions/*'] +"Framework": +- all: + - changed-files: + - any-glob-to-any-file: ['lib/*','tools/*','config/cli*','packages/*','extensions/*'] +"Action scripts": +- all: + - changed-files: + - any-glob-to-any-file: ['.github/workflows/*'] "Desktop": - - config/desktop/* + - all: + - changed-files: + - any-glob-to-any-file: ['config/desktop/*'] diff --git a/.github/labels.yml b/.github/labels.yml index b705f00026..35e13f6b8a 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -49,9 +49,12 @@ - name: "Hardware" color: "bfd4f2" description: "Hardware related - kernel, u-boot, patches" -- name: "Software" +- name: "Framework" color: "bfd4f2" description: "Framework components" +- name: "Action scripts" + color: "bfd4f2" + description: "GitHub Action scripts" - name: "Work in progress" color: "29E414" description: "Unfinished / work in progress" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c653277d91..780e7b111b 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,12 +6,14 @@ permissions: contents: read jobs: + triage: permissions: contents: read # for actions/labeler to determine modified files pull-requests: write # for actions/labeler to add labels to PRs runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}"