mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +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:
@@ -73,6 +73,8 @@ gh issue close ISSUE_NUMBER
|
||||
|
||||
## Generate changelog
|
||||
|
||||
Configuration settings are in `.github_changelog_generator`
|
||||
|
||||
### For pre-release
|
||||
|
||||
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
|
||||
EXCLUDE_TAGS=${NEW_RELEASE%.dev*}; EXCLUDE_TAGS=${EXCLUDE_TAGS//"."/"\."}; EXCLUDE_TAGS="^((?!"$EXCLUDE_TAGS")(.*dev\d))+"
|
||||
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
|
||||
|
||||
```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:
|
||||
|
Reference in New Issue
Block a user