mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Update changelog generator config (#1030)
Move the static command line options into the config file for consistency and remove `--no-issues` in favour of `issues-wo-labels=false` to fix the problem where `release-summary` issues are being excluded from the changelog.
This commit is contained in:
parent
38a8c964b2
commit
1bf6d80b2a
@ -1,5 +1,11 @@
|
|||||||
breaking_labels=breaking change
|
output=CHANGELOG.md
|
||||||
add-sections={"new-device":{"prefix":"**Added support for devices:**","labels":["new device"]},"docs":{"prefix":"**Documentation updates:**","labels":["documentation"]},"maintenance":{"prefix":"**Project maintenance:**","labels":["maintenance"]}}
|
base=HISTORY.md
|
||||||
|
user=python-kasa
|
||||||
|
project=python-kasa
|
||||||
|
since-tag=0.3.5
|
||||||
release_branch=master
|
release_branch=master
|
||||||
usernames-as-github-logins=true
|
usernames-as-github-logins=true
|
||||||
|
breaking_labels=breaking change
|
||||||
|
add-sections={"new-device":{"prefix":"**Added support for devices:**","labels":["new device"]},"docs":{"prefix":"**Documentation updates:**","labels":["documentation"]},"maintenance":{"prefix":"**Project maintenance:**","labels":["maintenance"]}}
|
||||||
exclude-labels=duplicate,question,invalid,wontfix,release-prep
|
exclude-labels=duplicate,question,invalid,wontfix,release-prep
|
||||||
|
issues-wo-labels=false
|
||||||
|
@ -73,6 +73,8 @@ gh issue close ISSUE_NUMBER
|
|||||||
|
|
||||||
## Generate changelog
|
## Generate changelog
|
||||||
|
|
||||||
|
Configuration settings are in `.github_changelog_generator`
|
||||||
|
|
||||||
### For pre-release
|
### For pre-release
|
||||||
|
|
||||||
EXCLUDE_TAGS will exclude all dev tags except for the current release dev tags.
|
EXCLUDE_TAGS will exclude all dev tags except for the current release dev tags.
|
||||||
@ -82,13 +84,13 @@ Regex should be something like this `^((?!0\.7\.0)(.*dev\d))+`. The first match
|
|||||||
```bash
|
```bash
|
||||||
EXCLUDE_TAGS=${NEW_RELEASE%.dev*}; EXCLUDE_TAGS=${EXCLUDE_TAGS//"."/"\."}; EXCLUDE_TAGS="^((?!"$EXCLUDE_TAGS")(.*dev\d))+"
|
EXCLUDE_TAGS=${NEW_RELEASE%.dev*}; EXCLUDE_TAGS=${EXCLUDE_TAGS//"."/"\."}; EXCLUDE_TAGS="^((?!"$EXCLUDE_TAGS")(.*dev\d))+"
|
||||||
echo "$EXCLUDE_TAGS"
|
echo "$EXCLUDE_TAGS"
|
||||||
github_changelog_generator --base HISTORY.md --user python-kasa --project python-kasa --since-tag $PREVIOUS_RELEASE --future-release $NEW_RELEASE -o CHANGELOG.md --no-issues --exclude-tags-regex "$EXCLUDE_TAGS"
|
github_changelog_generator --future-release $NEW_RELEASE --exclude-tags-regex "$EXCLUDE_TAGS"
|
||||||
```
|
```
|
||||||
|
|
||||||
### For production
|
### For production
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
github_changelog_generator --base HISTORY.md --user python-kasa --project python-kasa --since-tag $PREVIOUS_RELEASE --future-release $NEW_RELEASE -o CHANGELOG.md --no-issues --exclude-tags-regex 'dev\d$'
|
github_changelog_generator --future-release $NEW_RELEASE --exclude-tags-regex 'dev\d$'
|
||||||
```
|
```
|
||||||
|
|
||||||
You can ignore warnings about missing PR commits like below as these relate to PRs to branches other than master:
|
You can ignore warnings about missing PR commits like below as these relate to PRs to branches other than master:
|
||||||
|
Loading…
Reference in New Issue
Block a user