Skip to content

Commit 3aa6863

Browse files
committed
Update check_release for bikeshed changes
Update line numbers and the date pattern we search for in check_release to match the newly bikeshed flavoured specification document. Signed-off-by: Joshua Lock <[email protected]>
1 parent 569dccb commit 3aa6863

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

check_release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030

3131
SPEC_NAME = "tuf-spec.md"
3232

33-
LAST_MODIFIED_PATTERN = "Last modified: **%d %B %Y**\n"
34-
LAST_MODIFIED_LINENO = 3
33+
LAST_MODIFIED_PATTERN = "Date: %Y-%m-%d\n"
34+
LAST_MODIFIED_LINENO = 6
3535

3636
VERSION_PATTERN = r"^Version: \*\*(\d*)\.(\d*)\.(\d*)\*\*$"
37-
VERSION_LINENO = 5
37+
VERSION_LINENO = 19
3838

3939
class SpecError(Exception):
4040
"""Common error message part. """

0 commit comments

Comments
 (0)