Skip to content

Commit

Permalink
[MIRROR] fixes changelog linters [MDB IGNORE] (Skyrat-SS13#22353)
Browse files Browse the repository at this point in the history
* fixes changelog linters (#76608)

This portion of the script wasn't updated, so we always got an error on
linters. This never threw a `sys.exit` error so this list hasn't been
updated for a solid while now...

Let's both add the prefix and make sure we throw so we don't forget
about this script in the future. Quite important to make sure this stuff
works!

* fixes changelog linters

---------

Co-authored-by: san7890 <[email protected]>
  • Loading branch information
SkyratBot and san7890 authored Jul 10, 2023
1 parent 3fdf9af commit c6ad905
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/ss13_genchangelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
'refactor',
'config',
'admin',
'server'
'server',
'sound',
'image',
]

def dictToTuples(inp):
Expand Down Expand Up @@ -127,6 +129,7 @@ def dictToTuples(inp):
(change_type, _) = dictToTuples(change)[0]
if change_type not in validPrefixes:
print(' {0}: Invalid prefix {1}'.format(fileName, change_type), file=sys.stderr)
sys.exit(1)
author_entries += [change]
new += 1
currentEntries[today][cl['author']] = author_entries
Expand Down

0 comments on commit c6ad905

Please sign in to comment.