Skip to content

Commit

Permalink
Restore SemVer support in release-drafter centralized config (#210)
Browse files Browse the repository at this point in the history
This brings back support for SemVer using projects, which was previously broken.
  • Loading branch information
ssbarnea authored Aug 8, 2024
1 parent 963418e commit 2a3b875
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ tag-template: v$RESOLVED_VERSION
# Use '-' instead of '*' for unordered list to match prettier behavior
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
categories:
- title: Enhancements
# Keep titles single worlds, or they become md bookmarks
- title: Major
labels:
- major # c6476b
- title: Enhancements
labels:
- minor
- feature # 006b75
- enhancement # ededed
- refactoring
- title: Bugfixes
labels:
- bug # fbca04
- title: Other - "patch" - "deprecated" # fef2c0
- title: Other # fef2c0
exclude-labels:
- bot:chronographer:skip
- skip-changelog
Expand All @@ -24,11 +27,12 @@ replacers:
- search: /(?:and )?@(pre-commit-ci|dependabot)(?:\[bot\])?,?/g
replace: ""
version-resolver:
# major:
# labels:
minor:
# some projects are using SemVer, so keep 'major' label for major.
major:
labels:
- major
minor:
labels:
- minor
- feature
- enhancement
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/python/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To upgrade dependencies, it's recommended to use `pip-tools` as part of the `pre

Example `.pre-commit-config.yaml`

```
```yaml
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
hooks:
Expand Down

0 comments on commit 2a3b875

Please sign in to comment.