Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Jul 1, 2024
1 parent 8d4fb64 commit bbce01b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/changelog-processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
print("Line starting with `##` needs to be followed by ` [`, e.g.: `## [Unreleased]`, `## [400.2.1]`")
print(line)
sys.exit(-1)
elif line.count(".") != 2:
elif line.strip().removeprefix("## [").split("]")[0].count(".") != 2 and not "unreleased" in line.lower():
print("Only Major.Minor.Patch are supported as versioning")
print(line)
sys.exit(-1)
Expand All @@ -70,7 +70,6 @@

# Find the latest version
for line in lines:
print(line)
if not line.startswith("## ["):
changelog_last_release += line
continue
Expand All @@ -88,8 +87,6 @@
print(version, end = "")
sys.exit(0)
elif args.should_release:
print(version)

if version.lower() == "unreleased":
print("0", end = "")
sys.exit(0)
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/check-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ jobs:
echo "Enabling weight checks since we are not on a relay"
fi
echo "DEBUG"
.github/changelog-processor.py CHANGELOG.md --should-release
# Disable the spec version check when we dont want to release.
# The program prints either `1` or `0`.
if [ "$(.github/changelog-processor.py CHANGELOG.md --should-release)" = "0" ]; then
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog for the runtimes governed by the Polkadot Fellowship.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased
## [Unreleased]

### Changed

Expand Down

0 comments on commit bbce01b

Please sign in to comment.