Skip to content

News entry file name incorrectly formatted when moving a news entry #642

Open
@nineteendo

Description

@nineteendo

If a news entry is moved to a different category, you get News entry file name incorrectly formatted as an error message.

if FILENAME_RE.match(file_path.name) and len(file["patch"]) >= 1:

if not in_next_dir:
description = (
f'No news entry in {util.NEWS_NEXT_DIR} or "skip news" label found'
)
elif not file_found:
description = "News entry not in an appropriate directory"
else:
description = "News entry file name incorrectly formatted"

I spent way too long trying to figure this out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions