Skip to content

Running check after building the changelog #152

@energizah

Description

@energizah

I'm admittedly still figuring out the workflow for towncrier.

I'm trying something like:

# Checkout the new feature branch.
git checkout -b newbranch 
# Make a change.
echo 'def f(): ...' >> pkg/__init__.py   
# Commit the change.
git commit -am'Add __init__.py'
# Add the newsfragment
echo 'Make pkg into a package.' > changelog.d/123.change
# Bump the version number
bump2version patch
# Check for newsfragments
python -m towncrier.check
# Update changelog
towncrier --yes
# Ready to go? Let's double check everything.
# Run `tox -e check` which includes...
python -m towncrier.check
# which fails.

This last step fails because I've already updated the changelog and removed the fragments. Could towncrier.check figure out that it's already handled the newsfragments for this branch?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions