-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease-drafter.yml
More file actions
82 lines (73 loc) · 2.03 KB
/
release-drafter.yml
File metadata and controls
82 lines (73 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Release-drafter configuration.
#
# Drafts release notes by reading the conventional-commit prefix of each
# merged PR title (squash-merge subject) and grouping into the categories
# below. Categories map 1:1 to the [tool.commitizen].customize.schema_pattern
# types enforced by `Lint PR title` CI; see check_commit_types.py.
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "Features"
labels:
- "feat"
- title: "Fixes"
labels:
- "fix"
- title: "Housekeeping"
labels:
- "chore"
- "docs"
- "refactor"
- "test"
- "release"
# Match conventional-commit prefixes against PR titles regardless of label —
# release-drafter assigns the synthetic label so the categories above resolve
# even when the PR doesn't carry a manual label.
autolabeler:
- label: "feat"
title:
- "/^feat(\\(.+\\))?:/i"
- label: "fix"
title:
- "/^fix(\\(.+\\))?:/i"
- label: "chore"
title:
- "/^chore(\\(.+\\))?:/i"
- label: "docs"
title:
- "/^docs(\\(.+\\))?:/i"
- label: "refactor"
title:
- "/^refactor(\\(.+\\))?:/i"
- label: "test"
title:
- "/^test(\\(.+\\))?:/i"
- label: "release"
title:
- "/^release(\\(.+\\))?:/i"
# SemVer resolver:
# - any `feat` PR since the last release → minor bump
# - any `fix` PR with no `feat` → patch bump
# - everything else (chore/docs/refactor/test/release-only) → patch bump
# `major` is not auto-resolved — major bumps are deliberate human calls.
version-resolver:
minor:
labels:
- "feat"
patch:
labels:
- "fix"
- "chore"
- "docs"
- "refactor"
- "test"
- "release"
default: patch
template: |
## What's changed in v$RESOLVED_VERSION
$CHANGES
**Full changelog:** https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
change-template: "- $TITLE ([#$NUMBER]($URL))"
change-title-escapes: '\<*_&' # escape markdown control chars in PR titles
exclude-labels:
- "skip-changelog"