From 064fafeb4914ba60950854a883db188d3303edee Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 19 Jan 2026 17:51:27 +0000 Subject: [PATCH] Link CLI/language pack notes from new bundle changelog --- .github/workflows/script/bundle_changelog.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/script/bundle_changelog.py b/.github/workflows/script/bundle_changelog.py index 58712e88c..fdaed64cf 100755 --- a/.github/workflows/script/bundle_changelog.py +++ b/.github/workflows/script/bundle_changelog.py @@ -2,9 +2,15 @@ import os import re +cli_version = os.environ['CLI_VERSION'] + +# Link the GitHub Release corresponding to the new bundle version. +bundle_release_url = f"https://github.com/github/codeql-action/releases/codeql-bundle-v{cli_version}" +bundle_note = f"To learn more about the relevant changes to the CodeQL CLI and language packs, see the [bundle release]({bundle_release_url})." + # Get the PR number from the PR URL. pr_number = os.environ['PR_URL'].split('/')[-1] -changelog_note = f"- Update default CodeQL bundle version to {os.environ['CLI_VERSION']}. [#{pr_number}]({os.environ['PR_URL']})" +changelog_note = f"- Update default CodeQL bundle version to {cli_version}. {bundle_note} [#{pr_number}]({os.environ['PR_URL']})" # If the "[UNRELEASED]" section starts with "no user facing changes", remove that line. with open('CHANGELOG.md', 'r') as f: