From cae4a42545eb2500994d6580d3b4de1d1e385f16 Mon Sep 17 00:00:00 2001 From: lotyp Date: Thu, 12 Sep 2024 15:44:39 +0300 Subject: [PATCH] ci: update labeler --- .github/labeler.yml | 14 ++++++++++---- .github/workflows/apply-labels.yml | 6 ++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index af814de..658176f 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -3,12 +3,18 @@ # this file is for the labeler workflow job # Documentation https://github.com/marketplace/actions/labeler +"type: bug": + - head-branch: ['^bug', '^fix', 'bug', 'fix'] + +"type: enhancement": + - head-branch: ['^feature', '^feat', 'feature'] + "type: documentation": - - assets/**/* - - .github/* - - ./*.md + - changed-files: + - any-glob-to-any-file: ['assets/**/*', '.github/*.yml', './*.md'] "type: maintenance": - - .github/workflows/* + - changed-files: + - any-glob-to-any-file: ['.github/workflows/*'] ... diff --git a/.github/workflows/apply-labels.yml b/.github/workflows/apply-labels.yml index c9b1196..06bc8ed 100644 --- a/.github/workflows/apply-labels.yml +++ b/.github/workflows/apply-labels.yml @@ -8,13 +8,15 @@ # https://github.com/actions/labeler/blob/master/README.md on: # yamllint disable-line rule:truthy - pull_request: + pull_request_target: + types: + - opened name: 🏷️ Add labels jobs: label: - uses: wayofdev/gh-actions/.github/workflows/apply-labels.yml@master + uses: wayofdev/gh-actions/.github/workflows/apply-labels.yml@v3.2.0 with: os: ubuntu-latest secrets: