Skip to content

Highlight improperly NEWS.d entry files in the news check failure message. #57

Closed

Description

@gpshead

In PR python/cpython#3274 bedevere correctly kept the "No news entry in Misc/NEWS.d or "skip news" label found" warning on the PR. Presumably because it knew I had a typo in my NEWS.d filename (.bps- instead if .bpo-)?

I misunderstood its warning as just not noticing that I had added a NEWS.d file later. Could its warning text highlight unexpected filenames within a NEWS.d directory? or is this not worth doing? (I've learned - the question is how many others will learn the hard way)

Activity

  1. brettcannon commented on Sep 19, 2017

    @brettcannon
    Member

    As of right now the check is a regex match for the full path of the file:

    if FILENAME_RE.match(filename):

    It could be changed to do a str.startswith() check to make sure that a file exists in the proper directory in the else clause and then do a separate check for the filename itself after that. Both of those checks could have their own failure states that are more explicit as to why they were triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions