chore: Skip jobs by PR label
@@ -20,23 +20,27 @@ change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add
autolabeler:
- label: 'feature'
branch:
- - '/feat\/.+/'
+ - '/^feat\/.+/'
- label: 'improvement'
- - '/imprv\/.+/'
+ - '/^imprv\/.+/'
- label: 'bug'
- - '/fix\/.+/'
+ - '/^fix\/.+/'
title:
- - '/fix/i'
+ - '/^fix/i'
- label: 'support'
- - '/support\/.+/'
+ - '/^support\/.+/'
- - '/chore/i'
- - '/ci/i'
- - '/docs/i'
- - '/test/i'
+ - '/^ci/i'
+ - '/^docs/i'
+ - '/^test/i'
+ - label: 'exclude from changelog'
+ branch:
+ - '/^chore\/.+/'
+ title:
+ - '/^chore/i'
exclude-labels:
- 'exclude from changelog'
@@ -5,7 +5,8 @@ on:
branches-ignore:
- release/**
- rc/**
- - tmp/**
+ - chore/**
+ - support/prepare-v**
jobs:
@@ -13,6 +13,8 @@ jobs:
auto-labeling:
runs-on: ubuntu-latest
+ if: ${{ !contains(github.event.pull_request.labels.*.name, 'exclude from changelog') }}
+
steps:
- uses: release-drafter/release-drafter@v5
with:
@@ -22,6 +24,11 @@ jobs:
check-title:
+ if: |
+ (!contains( github.event.pull_request.labels.*.name, 'exclude from changelog' ) &&
+ !startsWith( github.ref, 'refs/heads/chore/' ))
- uses: amannn/action-semantic-pull-request@v3.4.2