Skip to content

Commit

Permalink
updat Release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Mar 3, 2024
1 parent 8d22e42 commit 5f14ddd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
53 changes: 38 additions & 15 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,61 @@ template: |
categories:
- title: 'Breaking'
label: 'type: breaking'
label: 'breaking'
- title: 'New'
label: 'type: feature'
labels:
- 'feature'
- 'enhancement'
- title: 'Bug Fixes'
label: 'type: bug'
label: 'bug'
- title: 'Maintenance'
label: 'type: maintenance'
labels:
- 'maintenance'
- 'github_actions'
- title: 'Documentation'
label: 'type: docs'
label: 'documentation'
- title: 'Other changes'
- title: 'Dependency Updates'
label: 'type: dependencies'
label: 'dependencies'
collapse-after: 5

version-resolver:
major:
labels:
- 'type: breaking'
- 'breaking'
- 'major'
minor:
labels:
- 'type: feature'
- 'feature'
- 'minor'
- 'enhancement'
patch:
labels:
- 'type: bug'
- 'type: maintenance'
- 'type: docs'
- 'type: dependencies'
- 'type: security'
- 'bug'
- 'maintenance'
- 'github_actions'
- 'documentation'
- 'dependencies'
- 'security'
default: patch

exclude-labels:
- 'skip-changelog'

exclude-contributors:
- 'joamatab'
autolabeler:
- label: 'documentation'
files:
- '*.md'
branch:
- '/docs-.+/'
- label: 'bug'
branch:
- '/fix-.+/'
title:
- '/fix/i'
- label: 'enhancement'
branch:
- '/feature-.+/'
- '/add-.+/'
title:
- '/^add\s/i'
6 changes: 3 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- main
# pull_request:
# types: [opened, reopened, synchronize]
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read
Expand All @@ -26,7 +26,7 @@ jobs:
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
Expand Down

0 comments on commit 5f14ddd

Please sign in to comment.