File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -221,10 +221,11 @@ def credit_given(file_paths):
221
221
return os .path .join ('Misc' , 'ACKS' ) in file_paths
222
222
223
223
224
- @status ("Misc/NEWS updated" , modal = True )
224
+ @status ("Misc/NEWS.d updated with `blurb` " , modal = True )
225
225
def reported_news (file_paths ):
226
- """Check if Misc/NEWS has been changed."""
227
- return os .path .join ('Misc' , 'NEWS' ) in file_paths
226
+ """Check if Misc/NEWS.d has been changed."""
227
+ return any (p .startswith (os .path .join ('Misc' , 'NEWS.d' , 'next' ))
228
+ for p in file_paths )
228
229
229
230
230
231
def main ():
@@ -234,8 +235,7 @@ def main():
234
235
c_files = [fn for fn in file_paths if fn .endswith (('.c' , '.h' ))]
235
236
doc_files = [fn for fn in file_paths if fn .startswith ('Doc' ) and
236
237
fn .endswith (('.rst' , '.inc' ))]
237
- misc_files = {os .path .join ('Misc' , 'ACKS' ), os .path .join ('Misc' , 'NEWS' )}\
238
- & set (file_paths )
238
+ misc_files = {p for p in file_paths if p .startswith ('Misc' )}
239
239
# PEP 8 whitespace rules enforcement.
240
240
normalize_whitespace (python_files )
241
241
# C rules enforcement.
You can’t perform that action at this time.
0 commit comments