Skip to content

[Pipeline] add parameter to skip changelog generation if needed - #42220

Merged
Yuchao Yan (msyyc) merged 2 commits into
mainfrom
pipeline-update
Jul 28, 2025
Merged

[Pipeline] add parameter to skip changelog generation if needed#42220
Yuchao Yan (msyyc) merged 2 commits into
mainfrom
pipeline-update

Conversation

@msyyc

Copy link
Copy Markdown
Member

No description provided.

@msyyc
Yuchao Yan (msyyc) marked this pull request as ready for review July 28, 2025 02:05
Copilot AI review requested due to automatic review settings July 28, 2025 02:05
@msyyc
Yuchao Yan (msyyc) merged commit 9bb1863 into main Jul 28, 2025
29 checks passed
@msyyc
Yuchao Yan (msyyc) deleted the pipeline-update branch July 28, 2025 02:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to conditionally skip changelog generation in the SDK generator pipeline by introducing an optional enableChangelog parameter. When set to False, the changelog generation step is bypassed, which can be useful for automated processes or specific scenarios where changelog generation is not needed.

if data.get("enableChangelog", True):
md_output = execute_func_with_timeout(change_log_func)
else:
md_output = "skip changelog generation"

Copilot AI Jul 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded string "skip changelog generation" should be replaced with a more descriptive constant or a structured response that better indicates the intentional skip. Consider using a constant like CHANGELOG_SKIPPED_MESSAGE or a more informative message.

Suggested change
md_output = "skip changelog generation"
md_output = CHANGELOG_SKIPPED_MESSAGE

Copilot uses AI. Check for mistakes.
@@ -368,7 +368,10 @@ def main(generate_input, generate_output):

changelog_generation_start_time = time.time()
try:

Copilot AI Jul 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new enableChangelog parameter lacks documentation. Consider adding a comment explaining the purpose and expected behavior when this parameter is set to False, especially since it affects the changelog generation workflow.

Suggested change
try:
try:
# The `enableChangelog` parameter determines whether the changelog generation process is executed.
# If set to False, the changelog generation is skipped, and a placeholder message is used instead.
# By default, this parameter is True, ensuring that changelogs are generated unless explicitly disabled.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants