Fix automatic labeling system due to upstream breaking change (#6011)

This commit is contained in:
Igor 2023-12-05 12:10:35 +01:00 committed by GitHub
parent e504369708
commit 3611f6ebbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 26 deletions

40
.github/labeler.yml vendored
View File

@ -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/*']

5
.github/labels.yml vendored
View File

@ -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"

View File

@ -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 }}"