Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build to towncrier commands #2915

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ docs: build-docs validate-docs

validate-docs: build-docs
python newsfragments/validate_files.py
towncrier --draft
towncrier build --draft

linux-docs: build-docs
readlink -f docs/_build/html/index.html
Expand All @@ -57,7 +57,7 @@ notes:
# Let UPCOMING_VERSION be the version that is used for the current bump
$(eval UPCOMING_VERSION=$(shell bumpversion $(bump) --dry-run --list | grep new_version= | sed 's/new_version=//g'))
# Now generate the release notes to have them included in the release commit
towncrier --yes --version $(UPCOMING_VERSION)
towncrier build --yes --version $(UPCOMING_VERSION)
# Before we bump the version, make sure that the towncrier-generated docs will build
make build-docs
git commit -m "Compile release notes"
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ Preview The Release Notes

.. code:: sh

$ towncrier --draft
$ towncrier build --draft


Compile The Release Notes
Expand Down
1 change: 1 addition & 0 deletions newsfragments/2915.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added ``build`` to towncrier commands in Makefile