@@ -192,10 +192,11 @@ def credit_given(file_paths):
192192 return os .path .join ('Misc' , 'ACKS' ) in file_paths
193193
194194
195- @status ("Misc/NEWS updated" , modal = True )
195+ @status ("Misc/NEWS.d updated with `blurb` " , modal = True )
196196def reported_news (file_paths ):
197- """Check if Misc/NEWS has been changed."""
198- return os .path .join ('Misc' , 'NEWS' ) in file_paths
197+ """Check if Misc/NEWS.d has been changed."""
198+ return any (p .startswith (os .path .join ('Misc' , 'NEWS.d' , 'next' ))
199+ for p in file_paths )
199200
200201@status ("configure regenerated" , modal = True , info = str )
201202def regenerated_configure (file_paths ):
@@ -241,8 +242,7 @@ def main():
241242 c_files = [fn for fn in file_paths if fn .endswith (('.c' , '.h' ))]
242243 doc_files = [fn for fn in file_paths if fn .startswith ('Doc' ) and
243244 fn .endswith (('.rst' , '.inc' ))]
244- misc_files = {os .path .join ('Misc' , 'ACKS' ), os .path .join ('Misc' , 'NEWS' )}\
245- & set (file_paths )
245+ misc_files = {p for p in file_paths if p .startswith ('Misc' )}
246246 # PEP 8 whitespace rules enforcement.
247247 normalize_whitespace (python_files )
248248 # C rules enforcement.
0 commit comments