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

Consolidate lingering news fragments named 'docs' #3078

Merged
merged 2 commits into from
Feb 4, 2022

Conversation

abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Feb 3, 2022

Summary of changes

This change address partially #3076.
The following tasks are handled:

  • Locating the releases pertinent to those entries.
  • Rendering those entries into the appropriate release.

Instead of writing a check that fails if any files are left in the chagelog.d directory after tox -e finalize, I reworked the existing check_changes function.

Previously, this function would check if the file name has one of the allowed substrings. While this check is useful it is not fail-proof. For example, a file named 9999.docs.rst has the valid doc substring so it would pass the check, but it would still be an invalid name.

Pull Request Checklist

The previous existing implementation would just check for the existence
of a preconfigured substring (e.g. `changes`, `doc`, ...).
However that can be problematic when the used extension contains one of
the valid substrings but is not valid itself.

For example `changelog.d/3034.docs.rst` contains the valid `doc`
substring but is not a valid name itself. The correct would be
`changelog.d/3034.doc.rst`.
@jaraco
Copy link
Member

jaraco commented Feb 4, 2022

Brilliant. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants