Abridge release notes for Action GH release

This commit is contained in:
Henry Mercer
2026-01-19 17:55:06 +00:00
parent 064fafeb49
commit 4d4ae1fbe8

View File

@@ -18,16 +18,15 @@ def extract_changelog_snippet(changelog_file, version_tag):
# Include everything up to, but excluding the second heading
found_first_section = False
for i, line in enumerate(lines):
for line in lines:
if line.startswith('## '):
if found_first_section:
break
found_first_section = True
output += line
elif found_first_section:
output += line
output += f"See the full [CHANGELOG.md](https://github.com/github/codeql-action/blob/{version_tag}/CHANGELOG.md) for more information."
return output
return output.strip()
if len(sys.argv) < 3: