diff --git a/changes/ticket21096 b/changes/ticket21096 new file mode 100644 index 0000000000..4265a3d5fa --- /dev/null +++ b/changes/ticket21096 @@ -0,0 +1,3 @@ + o Minor features (linting): + - Enhance the changes file linter to warn on Tor versions that are + prefixed with 'tor-'. Closes ticket 21096. diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py index 3694c4b3c4..bf06064fa8 100755 --- a/scripts/maint/lintChanges.py +++ b/scripts/maint/lintChanges.py @@ -75,6 +75,8 @@ def lintfile(fname): elif not re.search('[fF]ixes ([a-z ]*)bug (\d+); bugfix on ', contents): warn("bugfix incant is not semicoloned") + elif re.search('tor-([0-9]+)', contents): + warn("do not prefix versions with 'tor-'") if __name__ == '__main__':