From b17c536fbd6fed8ed7663430815091524dd7cafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Franch?= Date: Wed, 30 Sep 2026 18:07:17 +0200 Subject: [PATCH 1/2] ci: give labels colors and descriptions Co-Authored-By: Claude --- .github/workflows/labels.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 000000000..7458cb559 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,31 @@ +name: Labels + +on: + push: + branches: [main] + paths: ['.github/workflows/labels.yml'] + workflow_dispatch: + +permissions: {} + +jobs: + sync: + runs-on: ubuntu-latest + permissions: + issues: write + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + steps: + - run: | + label() { gh label create "$1" --color "$2" --description "$3" --force; } + label 'needs rebase' b60205 'Conflicts with main, rebase needed' + label relinker 5319e7 'core/relinker' + label shader 1d76db 'core/shader' + label agc 0e8a16 'libSceAgc*' + label libc fbca04 'libc' + label libkernel d93f0b 'libkernel' + label prx c5def5 'Other PRX libraries' + label build bfd4f2 'CMake, submodules, 3rdparty' + label docs 0075ca 'Documentation' + label ci f9d0c4 '.github' From 407a1f4a66bce4153997385716efb814fac79f36 Mon Sep 17 00:00:00 2001 From: boykopovar Date: Wed, 30 Sep 2026 19:15:51 +0300 Subject: [PATCH 2/2] ci(labels): set colors only for some --- .github/workflows/labels.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 7458cb559..3429cb6ff 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,3 +1,4 @@ + name: Labels on: @@ -18,14 +19,17 @@ jobs: GH_REPO: ${{ github.repository }} steps: - run: | - label() { gh label create "$1" --color "$2" --description "$3" --force; } - label 'needs rebase' b60205 'Conflicts with main, rebase needed' + label() { gh label create "$1" --color "$2" --description "$3"; } + force_label() { gh label create "$1" --color "$2" --description "$3" --force; } + + force_label 'needs rebase' b60205 'Conflicts with main, rebase needed' + force_label ci 5319e7 '.github' + force_label agc 1d76db 'libSceAgc*' + force_label shader 1d76db 'core/shader' + label relinker 5319e7 'core/relinker' - label shader 1d76db 'core/shader' - label agc 0e8a16 'libSceAgc*' label libc fbca04 'libc' label libkernel d93f0b 'libkernel' label prx c5def5 'Other PRX libraries' label build bfd4f2 'CMake, submodules, 3rdparty' label docs 0075ca 'Documentation' - label ci f9d0c4 '.github'