Skip to content

Commit

Permalink
Implement new changelog generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Jun 6, 2018
1 parent cef4d86 commit 70c475d
Show file tree
Hide file tree
Showing 7 changed files with 853 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ htmlcov/
# ansible-test coverage results
test/units/.coverage.*
/test/integration/cloud-config-azure.yml

/SYMLINK_CACHE.json
changelogs/.plugin-cache.yaml
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ sdist: clean docs
sdist_upload: clean docs
$(PYTHON) setup.py sdist upload 2>&1 |tee upload.log

.PHONY: changelog_reno
changelog_reno:
reno -d changelogs/ report --title 'Ansible $(MAJOR_VERSION) "$(CODENAME)" Release Notes' --collapse-pre-release --no-show-source --earliest-version v$(MAJOR_VERSION).0a1 --output changelogs/CHANGELOG-v$(MAJOR_VERSION).rst
.PHONY: changelog
changelog:
packaging/release/changelogs/changelog.py release -vv && packaging/release/changelogs/changelog.py generate -vv

.PHONY: rpmcommon
rpmcommon: sdist
Expand Down
7 changes: 1 addition & 6 deletions changelogs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ release_tag_re: '(v(?:[\d.ab\-]|rc)+)'
pre_release_tag_re: '(?P<pre_release>(?:[ab]|rc)+\d*)$'
notesdir: fragments
prelude_section_name: release_summary
new_plugins_after_name: removed_features
sections:
- ['major_changes', 'Major Changes']
- ['minor_changes', 'Minor Changes']
- ['deprecated_features', 'Deprecated Features']
- ['removed_features', 'Removed Features (previously deprecated)']
- ['new_lookup_plugins', 'New Lookup Plugins']
- ['new_callback_plugins', 'New Callback Plugins']
- ['new_connection_plugins', 'New Connection Plugins']
- ['new_test_plugins', 'New Test Plugins']
- ['new_filter_plugins', 'New Filter Plugins']
- ['new_modules', 'New Modules']
- ['bugfixes', 'Bugfixes']
- ['known_issues', 'Known Issues']
15 changes: 15 additions & 0 deletions docs/docsite/rst/dev_guide/testing/sanity/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Sanity Tests » changelog
========================

Basic linting of changelog fragments with yamllint and rstcheck.

One or more of the following sections are required:

- major_changes
- minor_changes
- deprecated_features
- removed_features
- bugfixes
- known_issues

New modules and plugins must not be included in changelog fragments.
Loading

0 comments on commit 70c475d

Please sign in to comment.