mirror of
https://github.com/github/codeql-action.git
synced 2026-04-05 03:02:16 +00:00
Abridge release notes for Action GH release
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user